From 101c87958dfeb769c697136d221a2a1c63929e65 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 4 Sep 2004 16:41:28 +0000 Subject: [project @ 2004-09-04 16:41:28 by jmb] Fix jpeg redraw Move png.c/h to /image and rework to use the bitmap code Make RISC OS bitmap struct publically accessible (via riscos/bitmap.h) Draw export now embeds JPEGs and PNGs/MNGs/JNGs correctly again. Background images are now plotted correctly again. svn path=/import/netsurf/; revision=1268 --- image/jpeg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'image/jpeg.c') diff --git a/image/jpeg.c b/image/jpeg.c index 85711bd2e..47a8f4b5e 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -122,7 +122,12 @@ bool nsjpeg_convert(struct content *c, int w, int h) scanlines[0][i * 4 + 2] = b; scanlines[0][i * 4 + 3] = 0xff; } - +#else + /* make fully opaque for alpha plotting + * (is there a better way?) */ + for (int i = width - 1; 0 <= i; i--) { + scanlines[0][i * 4 + 3] = 0xff; + } #endif } while (cinfo.output_scanline != cinfo.output_height); -- cgit v1.2.3