summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-20 15:50:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-20 15:50:15 +0000
commitd2deb88e3d7db2677e8126c0b64cacf02e46e5a7 (patch)
treec4ae11c6b3a1035fe38cb26fd6748763676b6b01
parentc78e7d9acd4d80a31514a2b7dd2750d164e0983c (diff)
downloadnetsurf-d2deb88e3d7db2677e8126c0b64cacf02e46e5a7.tar.gz
Port Windows thumbnailer to thumbnail_redraw().
svn path=/trunk/netsurf/; revision=11724
-rw-r--r--windows/thumbnail.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/windows/thumbnail.c b/windows/thumbnail.c
index a9e378bc0..ec44bbb2f 100644
--- a/windows/thumbnail.c
+++ b/windows/thumbnail.c
@@ -40,17 +40,11 @@ thumbnail_create(hlcache_handle *content,
HDC hdc, bufferdc, minidc;
struct bitmap *fsbitmap;
- struct rect clip;
width = min(content_get_width(content), 1024);
height = ((width * bitmap->height) + (bitmap->width / 2)) /
bitmap->width;
- clip.x0 = 0;
- clip.y0 = 0;
- clip.x1 = width;
- clip.y1 = height;
-
LOG(("bitmap %p for url %s content %p width %d, height %d",
bitmap, url, content, width, height));
@@ -73,7 +67,7 @@ thumbnail_create(hlcache_handle *content,
hdc = plot_hdc;
plot_hdc = bufferdc;
- content_redraw(content, 0, 0, width, height, &clip, 1.0, 0xFFFFFF);
+ thumbnail_redraw(content, width, height);
plot_hdc = hdc;
/* scale bitmap bufferbm into minibm */