aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-14 11:28:50 +0000
committerMartin Kiewitz2009-10-14 11:28:50 +0000
commit5da32b16c2fb3f05cd63bcf8dc984533234c9f24 (patch)
treeb622ba22cf13884331f9d799931ab62ed4860a5f /engines/sci
parentd6d2b0b6bb5677a950e47959ff5c475f99905b81 (diff)
downloadscummvm-rg350-5da32b16c2fb3f05cd63bcf8dc984533234c9f24.tar.gz
scummvm-rg350-5da32b16c2fb3f05cd63bcf8dc984533234c9f24.tar.bz2
scummvm-rg350-5da32b16c2fb3f05cd63bcf8dc984533234c9f24.zip
SCI: kDrawPic - flags is actually uint16
svn-id: r45069
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 560c125030..e13723d248 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -503,14 +503,14 @@ void _k_view_list_free_backgrounds(EngineState *s, ViewObject *list, int list_nr
reg_t kDrawPic(EngineState *s, int argc, reg_t *argv) {
GuiResourceId pictureId = argv[0].toUint16();
- int16 flags = 0;
+ uint16 flags = 0;
int16 animationNr = -1;
bool mirroredFlag = false;
bool addToFlag = false;
int16 EGApaletteNo = 0; // default needs to be 0
if (argc >= 2) {
- flags = argv[1].toSint16();
+ flags = argv[1].toUint16();
animationNr = flags & 0xFF;
if (flags & K_DRAWPIC_FLAG_MIRRORED)
mirroredFlag = true;