From 3276fe3ed8ee18580d4519164be1e35f44b859ce Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 3 Nov 2004 02:29:01 +0000 Subject: [project @ 2004-11-03 02:29:01 by rjw] Changing screenmodes causes font handles to be refound. svn path=/import/netsurf/; revision=1338 --- riscos/thumbnail.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'riscos/thumbnail.c') diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c index 4f2b9399c..fb9fac8c8 100644 --- a/riscos/thumbnail.c +++ b/riscos/thumbnail.c @@ -20,6 +20,7 @@ #include "oslib/osspriteop.h" #include "netsurf/content/content.h" #include "netsurf/desktop/plotters.h" +#include "netsurf/render/font.h" #include "netsurf/riscos/gui.h" #include "netsurf/riscos/options.h" #include "netsurf/riscos/thumbnail.h" @@ -106,9 +107,15 @@ void thumbnail_create(struct content *content, osspriteop_area *area, colourtrans_set_gcol(os_COLOUR_WHITE, colourtrans_SET_BG, os_ACTION_OVERWRITE, 0); os_clg(); + if ((content->type == CONTENT_HTML) && + (content->data.html.fonts)) + nsfont_reopen_set(content->data.html.fonts); content_redraw(content, 0, 0, width, height, 0, 0, width, height, scale, 0xFFFFFF); thumbnail_restore_output(save_area); + if ((content->type == CONTENT_HTML) && + (content->data.html.fonts)) + nsfont_reopen_set(content->data.html.fonts); /* Go back from 32bpp to [n]bpp if we should. */ -- cgit v1.2.3