diff options
author | Arnaud Boutonné | 2010-08-18 00:03:58 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-08-18 00:03:58 +0000 |
commit | f23cc57ad5eb461ea7a85cc40ba2de37a721a6c9 (patch) | |
tree | 8813c1b98a1b407bc6ada93b1067d7372f547da4 /engines | |
parent | 54c1a1463f2eadb8bf48c234f2474d395b7d62a6 (diff) | |
download | scummvm-rg350-f23cc57ad5eb461ea7a85cc40ba2de37a721a6c9.tar.gz scummvm-rg350-f23cc57ad5eb461ea7a85cc40ba2de37a721a6c9.tar.bz2 scummvm-rg350-f23cc57ad5eb461ea7a85cc40ba2de37a721a6c9.zip |
Fascination : Avoid to set _showCursor in initCursorAnim as it enables the cursor all the time, which is wrong. This fixes the bad icon while loading issue, and the weird icon in the lab. Thanks SylvainTV for solving it.
svn-id: r52178
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/inter.h | 1 | ||||
-rw-r--r-- | engines/gob/inter_fascin.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 8dabe12637..c925d8cf72 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -452,6 +452,7 @@ protected: void oFascin_closeWin(); void oFascin_activeWin(); void oFascin_openWin(); + void oFascin_initCursorAnim(); void oFascin_setRenderFlags(); void oFascin_setWinFlags(); }; diff --git a/engines/gob/inter_fascin.cpp b/engines/gob/inter_fascin.cpp index 8de5d4c4b1..1758b4470d 100644 --- a/engines/gob/inter_fascin.cpp +++ b/engines/gob/inter_fascin.cpp @@ -57,6 +57,8 @@ void Inter_Fascination::setupOpcodesDraw() { OPCODEDRAW(0x05, oFascin_activeWin); OPCODEDRAW(0x06, oFascin_openWin); + OPCODEDRAW(0x08, oFascin_initCursorAnim); + OPCODEDRAW(0x0A, oFascin_setRenderFlags); OPCODEDRAW(0x0B, oFascin_setWinFlags); @@ -251,6 +253,13 @@ void Inter_Fascination::oFascin_openWin() { WRITE_VAR((retVal / 4), (int32) _vm->_draw->openWin(id)); } +void Inter_Fascination::oFascin_initCursorAnim() { + int16 ind = _vm->_game->_script->readValExpr(); + _vm->_draw->_cursorAnimLow[ind] = _vm->_game->_script->readInt16(); + _vm->_draw->_cursorAnimHigh[ind] = _vm->_game->_script->readInt16(); + _vm->_draw->_cursorAnimDelays[ind] = _vm->_game->_script->readInt16(); +} + void Inter_Fascination::oFascin_setRenderFlags() { int16 expr; _vm->_game->_script->evalExpr(&expr); |