aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-11-18 22:54:27 +0100
committerEugene Sandulenko2015-11-18 22:54:27 +0100
commitdbb473752b0f64dc328c681889f59c99d4dc5ee5 (patch)
tree8fccf9e699380263d2ea1990137b2d3331f00e21 /engines
parent1c753c046f18e9029fbc85539614839790e95921 (diff)
downloadscummvm-rg350-dbb473752b0f64dc328c681889f59c99d4dc5ee5.tar.gz
scummvm-rg350-dbb473752b0f64dc328c681889f59c99d4dc5ee5.tar.bz2
scummvm-rg350-dbb473752b0f64dc328c681889f59c99d4dc5ee5.zip
SWORD25: Fix tint color
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/gfx/staticbitmap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword25/gfx/staticbitmap.cpp b/engines/sword25/gfx/staticbitmap.cpp
index 1a6c812508..7ab76e625e 100644
--- a/engines/sword25/gfx/staticbitmap.cpp
+++ b/engines/sword25/gfx/staticbitmap.cpp
@@ -124,6 +124,10 @@ uint StaticBitmap::getPixel(int x, int y) const {
assert(pResource->getType() == Resource::TYPE_BITMAP);
BitmapResource *pBitmapResource = static_cast<BitmapResource *>(pResource);
uint result = pBitmapResource->getPixel(x, y);
+ // Convert to LUA-ready format
+ byte a;
+ a = result & 0xff;
+ result = (result >> 8) | (a << 24);
pResource->release();
return result;
}