From 65b5ae0f8fe15d3ad659817cd72febf16cccdfe2 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 20 Feb 2005 13:19:19 +0000 Subject: [project @ 2005-02-20 13:19:19 by bursa] Font rewrite, part 3. Note that Draw export and printing are broken by these changes. svn path=/import/netsurf/; revision=1519 --- riscos/thumbnail.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'riscos/thumbnail.c') diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c index 091f43bfc..e28cdf7e5 100644 --- a/riscos/thumbnail.c +++ b/riscos/thumbnail.c @@ -15,6 +15,7 @@ #include #include +#include "rufl.h" #include "oslib/colourtrans.h" #include "oslib/osfile.h" #include "oslib/osspriteop.h" @@ -112,15 +113,11 @@ 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); + rufl_invalidate_cache(); 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); + rufl_invalidate_cache(); /* Go back from 32bpp to [n]bpp if we should. */ -- cgit v1.2.3