diff options
author | Peter Kohaut | 2016-09-26 23:38:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-29 22:33:41 +0200 |
commit | f1cb735ee07c11785f67080ea800a72dd551ae19 (patch) | |
tree | 7f67364d748a1091164ecaa98386165a76f78a8f /engines/bladerunner/slice_animations.cpp | |
parent | cfc8ffed8af71714cc6378b412557d5fc03781d4 (diff) | |
download | scummvm-rg350-f1cb735ee07c11785f67080ea800a72dd551ae19.tar.gz scummvm-rg350-f1cb735ee07c11785f67080ea800a72dd551ae19.tar.bz2 scummvm-rg350-f1cb735ee07c11785f67080ea800a72dd551ae19.zip |
BLADERUNNER: added rendering support for lighting and effects, but its not working correctly yet
Diffstat (limited to 'engines/bladerunner/slice_animations.cpp')
-rw-r--r-- | engines/bladerunner/slice_animations.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/bladerunner/slice_animations.cpp b/engines/bladerunner/slice_animations.cpp index aafd26885a..503193c2a6 100644 --- a/engines/bladerunner/slice_animations.cpp +++ b/engines/bladerunner/slice_animations.cpp @@ -51,11 +51,15 @@ bool SliceAnimations::open(const Common::String &name) { uint8 color_g = file.readByte(); uint8 color_b = file.readByte(); + _palettes[i].color[j].r = color_r; + _palettes[i].color[j].g = color_g; + _palettes[i].color[j].b = color_b; + uint16 rgb555 = ((uint16)color_r << 10) | ((uint16)color_g << 5) | (uint16)color_b; - _palettes[i][j] = rgb555; + _palettes[i].color555[j] = rgb555; } } |