[Scummvm-git-logs] scummvm master -> f08c56c527cb53470dc0885e602b445d457b7576
dwatteau
noreply at scummvm.org
Tue Mar 7 13:15:33 UTC 2023
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:
f08c56c527 GRIM: Undo last char/uint8 change for gfx_opengl_shaders.cpp
Commit: f08c56c527cb53470dc0885e602b445d457b7576
https://github.com/scummvm/scummvm/commit/f08c56c527cb53470dc0885e602b445d457b7576
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2023-03-07T14:15:19+01:00
Commit Message:
GRIM: Undo last char/uint8 change for gfx_opengl_shaders.cpp
This one still uses `char`.
Changed paths:
engines/grim/gfx_opengl_shaders.cpp
diff --git a/engines/grim/gfx_opengl_shaders.cpp b/engines/grim/gfx_opengl_shaders.cpp
index 8e26eea5103..d8151121e86 100644
--- a/engines/grim/gfx_opengl_shaders.cpp
+++ b/engines/grim/gfx_opengl_shaders.cpp
@@ -1259,11 +1259,11 @@ void GfxOpenGLS::createTexture(Texture *texture, const uint8 *data, const CMap *
if (col == 0) {
memset(texdatapos, 0, bytes); // transparent
if (!texture->_hasAlpha) {
- texdatapos[3] = 0xff; // fully opaque
+ texdatapos[3] = '\xff'; // fully opaque
}
} else {
memcpy(texdatapos, cmap->_colors + 3 * (col), 3);
- texdatapos[3] = 0xff; // fully opaque
+ texdatapos[3] = '\xff'; // fully opaque
}
texdatapos += bytes;
data++;
More information about the Scummvm-git-logs
mailing list