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 /riscos/thumbnail.c | |
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 'riscos/thumbnail.c')
-rw-r--r-- | riscos/thumbnail.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c index 82b885bfe..fba43f6bf 100644 --- a/riscos/thumbnail.c +++ b/riscos/thumbnail.c @@ -83,6 +83,7 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, { float scale = 1.0; struct thumbnail_save_area *save_area; + struct rect clip; osspriteop_area *sprite_area = NULL; osspriteop_header *sprite_header = NULL; _kernel_oserror *error; @@ -130,8 +131,12 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, colourtrans_set_gcol(os_COLOUR_WHITE, colourtrans_SET_BG_GCOL, os_ACTION_OVERWRITE, 0); os_clg(); + clip.x0 = 0; + clip.y0 = 0; + clip.x1 = bitmap->width; + clip.y1 = bitmap->height; content_redraw(content, 0, 0, bitmap->width, bitmap->height, - 0, 0, bitmap->width, bitmap->height, scale, 0xFFFFFF); + &clip, scale, 0xFFFFFF); thumbnail_restore_output(save_area); rufl_invalidate_cache(); |