[Scummvm-git-logs] scummvm master -> 518e6c90f4413876dca2a965503f997363fc845a

dreammaster paulfgilbert at gmail.com
Mon Jul 29 05:47:13 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
518e6c90f4 GLK: FROTZ: Fix loading transparent PNGs from Blorb files


Commit: 518e6c90f4413876dca2a965503f997363fc845a
    https://github.com/scummvm/scummvm/commit/518e6c90f4413876dca2a965503f997363fc845a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-07-28T20:47:06-07:00

Commit Message:
GLK: FROTZ: Fix loading transparent PNGs from Blorb files

Changed paths:
    engines/glk/picture.cpp


diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp
index a87f7f7..1663fa4 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()) {





More information about the Scummvm-git-logs mailing list