diff options
author | Kostas Nakos | 2009-03-01 21:03:46 +0000 |
---|---|---|
committer | Kostas Nakos | 2009-03-01 21:03:46 +0000 |
commit | a718713925ef79ddfa9dd545134a46eb918441ba (patch) | |
tree | dbc7dcb2ea8150cbc71634c847017bec5e550a7c /engines/tinsel/tinsel.h | |
parent | b42b7a8b40cacdd226b05fe70882a8e5c69e2b55 (diff) | |
download | scummvm-rg350-a718713925ef79ddfa9dd545134a46eb918441ba.tar.gz scummvm-rg350-a718713925ef79ddfa9dd545134a46eb918441ba.tar.bz2 scummvm-rg350-a718713925ef79ddfa9dd545134a46eb918441ba.zip |
only center vertically in DW2
svn-id: r39052
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); |