diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-11-10 22:39:33 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-11-10 22:39:33 +0000 |
commit | 02a54d4e981cff23c2cb3eb365efa34e7a3269fa (patch) | |
tree | 4ca5c2b8d6e68e077f73131a96f2bac80a619c02 /riscos/thumbnail.c | |
parent | 542f783b189fe7d2139a1e5e8c37f5b0f264805b (diff) | |
download | netsurf-02a54d4e981cff23c2cb3eb365efa34e7a3269fa.tar.gz netsurf-02a54d4e981cff23c2cb3eb365efa34e7a3269fa.tar.bz2 |
[project @ 2004-11-10 22:39:33 by rjw]
Fix 8bpp thumbnails.
svn path=/import/netsurf/; revision=1357
Diffstat (limited to 'riscos/thumbnail.c')
-rw-r--r-- | riscos/thumbnail.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c index fb9fac8c8..091f43bfc 100644 --- a/riscos/thumbnail.c +++ b/riscos/thumbnail.c @@ -68,6 +68,7 @@ void thumbnail_create(struct content *content, osspriteop_area *area, osspriteop_area *temp_area = NULL; struct thumbnail_save_area *save_area; osspriteop_area *render_area = NULL; + osspriteop_header *render_sprite = sprite; /* Check for 32bpp support in case we've been called for a sprite we didn't set up. @@ -84,7 +85,11 @@ void thumbnail_create(struct content *content, osspriteop_area *area, (os_mode)0x301680b5); render_area = temp_area; } - if (temp_area == NULL) render_area = area; + if (temp_area == NULL) { + render_area = area; + } else { + render_sprite = (osspriteop_header *)(temp_area + 1); + } /* Calculate the scale */ @@ -99,7 +104,7 @@ void thumbnail_create(struct content *content, osspriteop_area *area, /* Switch output and redraw */ - save_area = thumbnail_switch_output(render_area, sprite); + save_area = thumbnail_switch_output(render_area, render_sprite); if (save_area == NULL) { if (temp_area) free(temp_area); return; |