summaryrefslogtreecommitdiff
path: root/desktop/thumbnail.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-27 14:39:00 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-27 14:39:00 +0000
commit6f4f860ce3c6a569b15dce17b8d459636c936993 (patch)
treec710d1fd6c614e0519d317a89de0551a5c259872 /desktop/thumbnail.c
parent78663e91110b174c9febd29bb96b4a89f5a295a3 (diff)
downloadnetsurf-6f4f860ce3c6a569b15dce17b8d459636c936993.tar.gz
netsurf-6f4f860ce3c6a569b15dce17b8d459636c936993.tar.bz2
Add some debug round thumbnail creation
More debugging of thumbnail creation as it appears to be involved in a number of recently reported crashes on RISC OS.
Diffstat (limited to 'desktop/thumbnail.c')
-rw-r--r--desktop/thumbnail.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/thumbnail.c b/desktop/thumbnail.c
index 1011adc1f..d7aed007a 100644
--- a/desktop/thumbnail.c
+++ b/desktop/thumbnail.c
@@ -67,8 +67,11 @@ bool thumbnail_redraw(struct hlcache_handle *content,
assert(content);
- if (ctx->plot->option_knockout)
+ LOG(("Content %p %dx%d ctx:%p", content, width, height, ctx));
+
+ if (ctx->plot->option_knockout) {
knockout_plot_start(ctx, &new_ctx);
+ }
/* Set clip rectangle to required thumbnail size */
clip.x0 = 0;
@@ -99,8 +102,9 @@ bool thumbnail_redraw(struct hlcache_handle *content,
/* Render the content */
plot_ok &= content_redraw(content, &data, &clip, &new_ctx);
- if (ctx->plot->option_knockout)
+ if (ctx->plot->option_knockout) {
knockout_plot_end();
+ }
return plot_ok;
}