From 02a54d4e981cff23c2cb3eb365efa34e7a3269fa Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 10 Nov 2004 22:39:33 +0000 Subject: [project @ 2004-11-10 22:39:33 by rjw] Fix 8bpp thumbnails. svn path=/import/netsurf/; revision=1357 --- riscos/thumbnail.c | 9 +++++++-- 1 file 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; -- cgit v1.2.3