diff options
author | Eugene Sandulenko | 2015-11-18 22:54:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-11-18 22:54:27 +0100 |
commit | dbb473752b0f64dc328c681889f59c99d4dc5ee5 (patch) | |
tree | 8fccf9e699380263d2ea1990137b2d3331f00e21 /engines | |
parent | 1c753c046f18e9029fbc85539614839790e95921 (diff) | |
download | scummvm-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.cpp | 4 |
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; } |