[Scummvm-cvs-logs] SF.net SVN: scummvm:[45069] scummvm/trunk/engines/sci/engine/kgraphics.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Wed Oct 14 13:28:50 CEST 2009
Revision: 45069
http://scummvm.svn.sourceforge.net/scummvm/?rev=45069&view=rev
Author: m_kiewitz
Date: 2009-10-14 11:28:50 +0000 (Wed, 14 Oct 2009)
Log Message:
-----------
SCI: kDrawPic - flags is actually uint16
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-14 11:23:46 UTC (rev 45068)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-14 11:28:50 UTC (rev 45069)
@@ -503,14 +503,14 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list