diff options
author | James Bursa <james@netsurf-browser.org> | 2005-02-20 13:19:19 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-02-20 13:19:19 +0000 |
commit | 65b5ae0f8fe15d3ad659817cd72febf16cccdfe2 (patch) | |
tree | d51966245d3dd96a0422ba9b4adec9cc001f9515 /riscos/thumbnail.c | |
parent | 1a52a32e5d5ccf78639c268cc660d8d8b0d98092 (diff) | |
download | netsurf-65b5ae0f8fe15d3ad659817cd72febf16cccdfe2.tar.gz netsurf-65b5ae0f8fe15d3ad659817cd72febf16cccdfe2.tar.bz2 |
[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
Diffstat (limited to 'riscos/thumbnail.c')
-rw-r--r-- | riscos/thumbnail.c | 9 |
1 files changed, 3 insertions, 6 deletions
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 <string.h> #include <swis.h> +#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. */ |