From d2deb88e3d7db2677e8126c0b64cacf02e46e5a7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 20 Feb 2011 15:50:15 +0000 Subject: Port Windows thumbnailer to thumbnail_redraw(). svn path=/trunk/netsurf/; revision=11724 --- windows/thumbnail.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'windows') 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 */ -- cgit v1.2.3