summaryrefslogtreecommitdiff
path: root/image/jpeg.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-09-04 16:41:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-09-04 16:41:28 +0000
commit101c87958dfeb769c697136d221a2a1c63929e65 (patch)
tree99108a4a5c4b182ca9d385a9fa0330a9a6e3ea03 /image/jpeg.c
parente223757e3504586f8c260991b81f8f62c3b75ffc (diff)
downloadnetsurf-101c87958dfeb769c697136d221a2a1c63929e65.tar.gz
netsurf-101c87958dfeb769c697136d221a2a1c63929e65.tar.bz2
[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
Diffstat (limited to 'image/jpeg.c')
-rw-r--r--image/jpeg.c7
1 files changed, 6 insertions, 1 deletions
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);