summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-09 21:10:30 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-09 21:10:30 +0000
commitb355c48f970eca0dbe637d2ff4dd2eba6b2d21b9 (patch)
tree332ce7803598bdd6367254c039529af8f533d7ed /desktop
parent55fd1d0133d30ed68f29860fa867f17c1e7f78b4 (diff)
downloadnetsurf-b355c48f970eca0dbe637d2ff4dd2eba6b2d21b9.tar.gz
netsurf-b355c48f970eca0dbe637d2ff4dd2eba6b2d21b9.tar.bz2
Make thumbnail_get_redraw_scale() static.
svn path=/trunk/netsurf/; revision=11949
Diffstat (limited to 'desktop')
-rw-r--r--desktop/thumbnail.c34
-rw-r--r--desktop/thumbnail.h12
2 files changed, 22 insertions, 24 deletions
diff --git a/desktop/thumbnail.c b/desktop/thumbnail.c
index 5407b60bb..c8aa9de76 100644
--- a/desktop/thumbnail.c
+++ b/desktop/thumbnail.c
@@ -33,6 +33,28 @@
#include "utils/log.h"
+/**
+ * Get scale at which thumbnail will be rendered for a given content and
+ * thumbnail size.
+ *
+ * \param content The content to redraw for thumbnail
+ * \param width The thumbnail width
+ * \return scale thumbnail will be rendered at
+ *
+ * Units for width and height are pixels.
+ */
+static float thumbnail_get_redraw_scale(struct hlcache_handle *content,
+ int width)
+{
+ assert(content);
+
+ if (content_get_width(content))
+ return (float)width / (float)content_get_width(content);
+ else
+ return 1.0;
+}
+
+
/* exported interface, documented in thumbnail.h */
bool thumbnail_redraw(struct hlcache_handle *content,
int width, int height)
@@ -73,15 +95,3 @@ bool thumbnail_redraw(struct hlcache_handle *content,
return plot_ok;
}
-
-
-/* exported interface, documented in thumbnail.h */
-float thumbnail_get_redraw_scale(struct hlcache_handle *content, int width)
-{
- assert(content);
-
- if (content_get_width(content))
- return (float)width / (float)content_get_width(content);
- else
- return 1.0;
-}
diff --git a/desktop/thumbnail.h b/desktop/thumbnail.h
index c4700547f..71efdd81e 100644
--- a/desktop/thumbnail.h
+++ b/desktop/thumbnail.h
@@ -47,18 +47,6 @@ struct bitmap;
bool thumbnail_redraw(struct hlcache_handle *content,
int width, int height);
-/**
- * Get scale at which thumbnail will be rendered for a given content and
- * thumbnail size.
- *
- * \param content The content to redraw for thumbnail
- * \param width The thumbnail width
- * \return scale thumbnail will be rendered at
- *
- * Units for width and height are pixels.
- */
-float thumbnail_get_redraw_scale(struct hlcache_handle *content, int width);
-
/* In platform specific thumbnail.c. */
bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,