diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-13 22:25:11 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-13 22:25:11 +0000 |
commit | fe7921a387c5a71c8ecba7bb605679b7dab4b86f (patch) | |
tree | d31c249671b3e71f498dd48b6c42b56f1e278f7f /windows | |
parent | db2f823e9990cee17b1072ce2296ef88062bc7bd (diff) | |
download | netsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.gz netsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.bz2 |
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
Diffstat (limited to 'windows')
-rw-r--r-- | windows/thumbnail.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 */ |