From 403f12872d55a71b04287ed828be0c63be19e856 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 4 Oct 2004 23:54:42 +0000 Subject: [project @ 2004-10-04 23:54:42 by rjw] Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too. svn path=/import/netsurf/; revision=1301 --- image/mng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'image/mng.c') diff --git a/image/mng.c b/image/mng.c index fecebe6f3..d1b9c9cfc 100644 --- a/image/mng.c +++ b/image/mng.c @@ -258,6 +258,12 @@ bool nsmng_convert(struct content *c, int width, int height) { LOG(("Unable to start display (%i)", status)); return nsmng_broadcast_error(c); } + + /* Optimise the plotting of JNG/PNGs + */ + if ((c->type == CONTENT_PNG) || (c->type == CONTENT_JNG)) { + bitmap_set_opaque(c->bitmap, bitmap_test_opaque(c->bitmap)); + } return true; } -- cgit v1.2.3