summaryrefslogtreecommitdiff
path: root/riscos/thumbnail.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-11-03 02:29:01 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-11-03 02:29:01 +0000
commit3276fe3ed8ee18580d4519164be1e35f44b859ce (patch)
treea874c2571962ce768838ba2ec1c8856f54f25ee4 /riscos/thumbnail.c
parentce0fc3daf7f7548b412bce606e5ed9284e993ac5 (diff)
downloadnetsurf-3276fe3ed8ee18580d4519164be1e35f44b859ce.tar.gz
netsurf-3276fe3ed8ee18580d4519164be1e35f44b859ce.tar.bz2
[project @ 2004-11-03 02:29:01 by rjw]
Changing screenmodes causes font handles to be refound. svn path=/import/netsurf/; revision=1338
Diffstat (limited to 'riscos/thumbnail.c')
-rw-r--r--riscos/thumbnail.c7
1 files changed, 7 insertions, 0 deletions
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.
*/