[Scummvm-git-logs] scummvm master -> 1241bd65016ea7edb8e14d7c55748ba7962018f7
sev-
noreply at scummvm.org
Mon Oct 7 00:18:34 UTC 2024
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:
1241bd6501 QDENGINE: Fix TGA sprite transparency. Courtecy of Ahmed Aladdin
Commit: 1241bd65016ea7edb8e14d7c55748ba7962018f7
https://github.com/scummvm/scummvm/commit/1241bd65016ea7edb8e14d7c55748ba7962018f7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-10-07T02:18:24+02:00
Commit Message:
QDENGINE: Fix TGA sprite transparency. Courtecy of Ahmed Aladdin
It was introduced in 0f63f915ce327a8dbe8c8cc3fb2d21968483b7a9
Fixes inventory background in karliknos
Changed paths:
engines/qdengine/system/graphics/gr_draw_sprite.cpp
diff --git a/engines/qdengine/system/graphics/gr_draw_sprite.cpp b/engines/qdengine/system/graphics/gr_draw_sprite.cpp
index a747fbd5de4..1d17b28b76f 100644
--- a/engines/qdengine/system/graphics/gr_draw_sprite.cpp
+++ b/engines/qdengine/system/graphics/gr_draw_sprite.cpp
@@ -633,7 +633,7 @@ void grDispatcher::putSpr(int x, int y, int sx, int sy, const byte *p, int mode,
const byte *data_line = data_ptr + px;
for (int j = 0; j < psx; j++) {
- if (*data_line)
+ if (data_line[0] || data_line[1] || data_line[2])
*scr_buf = make_rgb565u(data_line[2], data_line[1], data_line[0]);
scr_buf += dx;
data_line += 3;
More information about the Scummvm-git-logs
mailing list