diff options
author | Paul Gilbert | 2019-07-28 20:45:57 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-28 20:47:06 -0700 |
commit | 518e6c90f4413876dca2a965503f997363fc845a (patch) | |
tree | 685549814651403e3003bf796829c9967c9002d1 /engines/glk/picture.cpp | |
parent | 749e3f42de41fed7352a86beecb101a50285afdb (diff) | |
download | scummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.tar.gz scummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.tar.bz2 scummvm-rg350-518e6c90f4413876dca2a965503f997363fc845a.zip |
GLK: FROTZ: Fix loading transparent PNGs from Blorb files
Diffstat (limited to 'engines/glk/picture.cpp')
-rw-r--r-- | engines/glk/picture.cpp | 2 |
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()) { |