diff options
Diffstat (limited to 'image/mng.c')
-rw-r--r-- | image/mng.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |