summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-09 21:04:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-09 21:04:15 +0000
commit55fd1d0133d30ed68f29860fa867f17c1e7f78b4 (patch)
treeef91354d74bd1585616f8a6299b7b27082fbbd12
parenta0e0d23c2df487d48ff12f7abdc35e05b1861dd1 (diff)
downloadnetsurf-55fd1d0133d30ed68f29860fa867f17c1e7f78b4.tar.gz
netsurf-55fd1d0133d30ed68f29860fa867f17c1e7f78b4.tar.bz2
Front ends don't need to call thumbnail_get_redraw_scale() now.
svn path=/trunk/netsurf/; revision=11946
-rwxr-xr-xamiga/thumbnail.c2
-rw-r--r--beos/beos_thumbnail.cpp2
-rw-r--r--cocoa/thumbnail.m3
-rw-r--r--gtk/thumbnail.c4
-rw-r--r--riscos/thumbnail.c3
5 files changed, 0 insertions, 14 deletions
diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c
index b082b73af..be15877de 100755
--- a/amiga/thumbnail.c
+++ b/amiga/thumbnail.c
@@ -57,8 +57,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
current_redraw_browser = curbw;
plot = amiplot;
- glob->scale = thumbnail_get_redraw_scale(content, plot_width);
-
thumbnail_redraw(content, plot_width, plot_height);
current_redraw_browser = NULL;
diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp
index a3bd2cd56..88e291c44 100644
--- a/beos/beos_thumbnail.cpp
+++ b/beos/beos_thumbnail.cpp
@@ -67,7 +67,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
BView *thumbView;
float width;
float height;
- float plot_scale;
int big_width;
int big_height;
int depth;
@@ -118,7 +117,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
nsbeos_current_gc_set(view);
plot = nsbeos_plotters;
- plot_scale = thumbnail_get_redraw_scale(content, big_width);
/* render the content */
thumbnail_redraw(content, big_width, big_height);
diff --git a/cocoa/thumbnail.m b/cocoa/thumbnail.m
index d91d4810a..01239b9ec 100644
--- a/cocoa/thumbnail.m
+++ b/cocoa/thumbnail.m
@@ -46,9 +46,6 @@ bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,
[NSGraphicsContext setCurrentContext: [NSGraphicsContext graphicsContextWithGraphicsPort: bitmapContext flipped: YES]];
- /* todo: ??? set plot scale according to the scale the thumbnail will be
- * rendered at, by calling thumbnail_get_redraw_scale(). ??? */
-
thumbnail_redraw( content, width, height );
[NSGraphicsContext setCurrentContext: nil];
diff --git a/gtk/thumbnail.c b/gtk/thumbnail.c
index 1935413f4..6f9e341b2 100644
--- a/gtk/thumbnail.c
+++ b/gtk/thumbnail.c
@@ -57,7 +57,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
gint depth;
GdkPixmap *pixmap;
GdkPixbuf *big;
- float plot_scale;
double scale;
assert(content);
@@ -97,9 +96,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
/* set the plotting functions up */
plot = nsgtk_plotters;
- /* Plotters need to know thumbnail scale */
- plot_scale = thumbnail_get_redraw_scale(content, cwidth);
-
/* set to plot to pixmap */
current_drawable = pixmap;
current_gc = gdk_gc_new(current_drawable);
diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c
index 3bc25f335..92fa0cdb2 100644
--- a/riscos/thumbnail.c
+++ b/riscos/thumbnail.c
@@ -82,7 +82,6 @@ static void thumbnail_restore_output(struct thumbnail_save_area *save_area);
bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
const char *url)
{
- float scale = 1.0;
struct thumbnail_save_area *save_area;
osspriteop_area *sprite_area = NULL;
osspriteop_header *sprite_header = NULL;
@@ -114,8 +113,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
plot = ro_plotters;
ro_plot_origin_x = 0;
ro_plot_origin_y = bitmap->height * 2;
- if (content_get_width(content))
- scale = thumbnail_get_redraw_scale(content, bitmap->width);
/* switch output and redraw */
save_area = thumbnail_switch_output(sprite_area, sprite_header);