aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/slice_animations.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2016-09-26 23:38:35 +0200
committerEugene Sandulenko2016-09-29 22:33:41 +0200
commitf1cb735ee07c11785f67080ea800a72dd551ae19 (patch)
tree7f67364d748a1091164ecaa98386165a76f78a8f /engines/bladerunner/slice_animations.cpp
parentcfc8ffed8af71714cc6378b412557d5fc03781d4 (diff)
downloadscummvm-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.cpp6
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;
}
}