summaryrefslogtreecommitdiff
path: root/image/jpeg.c
diff options
context:
space:
mode:
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);