From a718713925ef79ddfa9dd545134a46eb918441ba Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sun, 1 Mar 2009 21:03:46 +0000 Subject: only center vertically in DW2 svn-id: r39052 --- engines/tinsel/tinsel.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/tinsel/tinsel.h') 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); -- cgit v1.2.3