From 658cd31311cd4bf5e16379f84c8131cbfa77b532 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 8 May 2011 15:14:21 +0000 Subject: clean up jpeg image handling ready for refactor svn path=/trunk/netsurf/; revision=12311 --- image/png.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'image/png.c') diff --git a/image/png.c b/image/png.c index 8a88a09c8..69ea92312 100644 --- a/image/png.c +++ b/image/png.c @@ -53,7 +53,7 @@ #endif typedef struct nspng_content { - struct content base; + struct content base; /**< base content type */ png_structp png; png_infop info; @@ -323,6 +323,8 @@ static bool nspng_convert(struct content *c) bitmap_set_opaque(png_c->bitmap, bitmap_test_opaque(png_c->bitmap)); bitmap_modified(png_c->bitmap); + c->bitmap = png_c->bitmap; /* this needs to go */ + content_set_ready(c); content_set_done(c); content_set_status(c, ""); -- cgit v1.2.3