summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/browser_history.c1
-rw-r--r--desktop/thumbnail.c8
-rw-r--r--riscos/thumbnail.c8
3 files changed, 13 insertions, 4 deletions
diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index dc04a16c1..1991bf9a1 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -524,6 +524,7 @@ nserror browser_window_history_add(struct browser_window *bw,
/* Thumbnailing failed. Ignore it
* silently but clean up bitmap.
*/
+ LOG(("Thumbnail bitmap creation failed"));
bitmap_destroy(bitmap);
bitmap = NULL;
}
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;
}
diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c
index 603c328b8..9b8b52da5 100644
--- a/riscos/thumbnail.c
+++ b/riscos/thumbnail.c
@@ -92,12 +92,16 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap)
assert(content);
assert(bitmap);
+ LOG(("content %p in bitmap %p", content, bitmap));
+
/* check if we have access to 32bpp sprites natively */
- if (thumbnail_32bpp_available == -1)
+ if (thumbnail_32bpp_available == -1) {
thumbnail_test();
+ }
/* if we don't support 32bpp sprites then we redirect to an 8bpp
- * image and then convert back. */
+ * image and then convert back.
+ */
if (thumbnail_32bpp_available != 1) {
sprite_area = thumbnail_create_8bpp(bitmap);
if (!sprite_area)