aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2019-07-28 20:45:57 -0700
committerPaul Gilbert2019-07-28 20:47:06 -0700
commit518e6c90f4413876dca2a965503f997363fc845a (patch)
tree685549814651403e3003bf796829c9967c9002d1
parent749e3f42de41fed7352a86beecb101a50285afdb (diff)
downloadscummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.tar.gz
scummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.tar.bz2
scummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.zip
GLK: FROTZ: Fix loading transparent PNGs from Blorb files
-rw-r--r--engines/glk/picture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp
index a87f7f7b81..1663fa43ef 100644
--- a/engines/glk/picture.cpp
+++ b/engines/glk/picture.cpp
@@ -147,7 +147,7 @@ Picture *Pictures::load(uint32 id) {
pic->_refCount = 1;
pic->_id = id;
pic->_scaled = false;
- if (transColor != -1)
+ if (transColor != -1 || (!palette && img->format.aBits() > 0))
pic->clear(pic->getTransparentColor());
if (!img->getPixels()) {