From fe7921a387c5a71c8ecba7bb605679b7dab4b86f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 13 Feb 2011 22:25:11 +0000 Subject: Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested. svn path=/trunk/netsurf/; revision=11670 --- windows/thumbnail.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'windows/thumbnail.c') diff --git a/windows/thumbnail.c b/windows/thumbnail.c index dece47253..729e642dd 100644 --- a/windows/thumbnail.c +++ b/windows/thumbnail.c @@ -39,10 +39,16 @@ thumbnail_create(hlcache_handle *content, HDC hdc, bufferdc, minidc; struct bitmap *fsbitmap; + struct rect clip; width = min(content_get_width(content), 800); height = min(content_get_height(content), 600); + 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)); @@ -65,8 +71,7 @@ thumbnail_create(hlcache_handle *content, hdc = plot_hdc; plot_hdc = bufferdc; - content_redraw(content, 0, 0, width, height, 0, 0, - width, height, 1.0, 0xFFFFFF); + content_redraw(content, 0, 0, width, height, &clip, 1.0, 0xFFFFFF); plot_hdc = hdc; /* scale bitmap bufferbm into minibm */ -- cgit v1.2.3