[Scummvm-git-logs] scummvm master -> 4f1521f542d9b5c310f3c2eccfbe2875cc0411ee
dreammaster
paulfgilbert at gmail.com
Mon Mar 23 03:35:50 UTC 2020
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:
4f1521f542 GRAPHICS: Fix setting ManagedSurface palette
Commit: 4f1521f542d9b5c310f3c2eccfbe2875cc0411ee
https://github.com/scummvm/scummvm/commit/4f1521f542d9b5c310f3c2eccfbe2875cc0411ee
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2020-03-22T20:29:37-07:00
Commit Message:
GRAPHICS: Fix setting ManagedSurface palette
Changed paths:
graphics/managed_surface.cpp
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index 936848f494..9bcbf6e855 100644
--- a/graphics/managed_surface.cpp
+++ b/graphics/managed_surface.cpp
@@ -459,7 +459,7 @@ void ManagedSurface::setPalette(const byte *colors, uint start, uint num) {
uint32 *dest = &_palette[start];
for (; num > 0; --num, colors += 3) {
- *dest = colors[0] | (colors[1] << 8) | (colors[2] << 16) | (0xff << 24);
+ *dest++ = colors[0] | (colors[1] << 8) | (colors[2] << 16) | (0xff << 24);
}
_paletteSet = true;
More information about the Scummvm-git-logs
mailing list