diff options
author | Max Horn | 2010-11-28 18:10:12 +0000 |
---|---|---|
committer | Max Horn | 2010-11-28 18:10:12 +0000 |
commit | 8399232a437d74a15b3675ad0f349001b87a6480 (patch) | |
tree | bd47003ab9a1ab6c8a22e6aef06c9676b54244b3 /backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | |
parent | 1c3ba8bc405b1f249a488480e397a984834744d4 (diff) | |
download | scummvm-rg350-8399232a437d74a15b3675ad0f349001b87a6480.tar.gz scummvm-rg350-8399232a437d74a15b3675ad0f349001b87a6480.tar.bz2 scummvm-rg350-8399232a437d74a15b3675ad0f349001b87a6480.zip |
DINGUX: More compilation fixes
svn-id: r54541
Diffstat (limited to 'backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp')
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp index fabb3390f3..1b8881d5ad 100644 --- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp @@ -23,14 +23,15 @@ * */ -#if defined (DINGUX) +#if defined(DINGUX) + +// Disable symbol overrides so that we can use system headers. +#define FORBIDDEN_SYMBOL_EXCEPTION_FILE #include "backends/graphics/dinguxsdl/dinguxsdl-graphics.h" #include "backends/events/dinguxsdl/dinguxsdl-events.h" #include "graphics/scaler/aspect.h" - -// Disable symbol overrides so that we can use system headers. -#define FORBIDDEN_SYMBOL_EXCEPTION_FILE +#include "common/mutex.h" static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { {"1x", "Standard", GFX_NORMAL}, @@ -502,10 +503,6 @@ SdlGraphicsManager::VideoState* DINGUXSdlGraphicsManager::getVideoMode() { return &_videoMode; } -bool DINGUXSdlGraphicsManager::isOverlayVisible() { - return _overlayVisible; -} - void DINGUXSdlGraphicsManager::warpMouse(int x, int y) { if (_mouseCurState.x != x || _mouseCurState.y != y) { if (_videoMode.mode == GFX_HALF && !_overlayVisible) { @@ -522,8 +519,8 @@ void DINGUXSdlGraphicsManager::adjustMouseEvent(const Common::Event &event) { newEvent.synthetic = true; if (!_overlayVisible) { if (_videoMode.mode == GFX_HALF) { - event.mouse.x *= 2; - event.mouse.y *= 2; + newEvent.mouse.x *= 2; + newEvent.mouse.y *= 2; } newEvent.mouse.x /= _videoMode.scaleFactor; newEvent.mouse.y /= _videoMode.scaleFactor; |