From b88a81b9d9570c3219dc924c3dd2b424d99ee4c3 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 23 Jun 2005 17:22:28 +0000 Subject: [project @ 2005-06-23 17:22:28 by rjw] Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2. svn path=/import/netsurf/; revision=1761 --- image/mng.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'image/mng.c') diff --git a/image/mng.c b/image/mng.c index fadd6a3af..1c987fa4d 100644 --- a/image/mng.c +++ b/image/mng.c @@ -293,13 +293,13 @@ bool nsmng_convert(struct content *c, int width, int height) { LOG(("Unable to start display (%i)", status)); return nsmng_broadcast_error(c); } + bitmap_modified(c->bitmap); /* Optimise the plotting of JNG/PNGs */ c->data.mng.opaque_test_pending = (c->type == CONTENT_PNG) || (c->type == CONTENT_JNG); if (c->data.mng.opaque_test_pending) bitmap_set_opaque(c->bitmap, false); - return true; } @@ -467,6 +467,8 @@ void nsmng_animate(void *p) { c->data.mng.waiting = false; mng_display_resume(c->data.mng.handle); c->data.mng.opaque_test_pending = true; + if (c->bitmap) + bitmap_modified(c->bitmap); } } -- cgit v1.2.3