diff options
Diffstat (limited to 'engines/tinsel/tinsel.h')
-rw-r--r-- | engines/tinsel/tinsel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tinsel/tinsel.h b/engines/tinsel/tinsel.h index d95b43564c..4806d499ef 100644 --- a/engines/tinsel/tinsel.h +++ b/engines/tinsel/tinsel.h @@ -124,6 +124,9 @@ typedef bool (*KEYFPTR)(const Common::KeyState &); #define TinselV1 (TinselVersion == TINSEL_V1) #define TinselV2 (TinselVersion == TINSEL_V2) +// Global reference to the TinselEngine object +extern TinselEngine *_vm; + class TinselEngine : public Engine { int _gameId; Common::KeyState _keyPressed; @@ -197,8 +200,8 @@ public: Common::Point getMousePosition() const { return _mousePos; } void setMousePosition(const Common::Point &pt) { - int ySize = (g_system->getHeight() - _screenSurface.h) / 2; - g_system->warpMouse(pt.x, pt.y + ySize); + int yOffset = TinselV2 ? (g_system->getHeight() - _screenSurface.h) / 2 : 0; + g_system->warpMouse(pt.x, pt.y + yOffset); _mousePos = pt; } void divertKeyInput(KEYFPTR fptr) { _keyHandler = fptr; } @@ -206,9 +209,6 @@ public: uint8 getKeyDirection() const { return _dosPlayerDir; } }; -// Global reference to the TinselEngine object -extern TinselEngine *_vm; - // Externally available methods void CuttingScene(bool bCutting); void CDChangeForRestore(int cdNumber); |