diff options
-rw-r--r-- | backends/events/dinguxsdl/dinguxsdl-events.h | 2 | ||||
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp | 17 | ||||
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.h | 2 |
3 files changed, 7 insertions, 14 deletions
diff --git a/backends/events/dinguxsdl/dinguxsdl-events.h b/backends/events/dinguxsdl/dinguxsdl-events.h index 87814437e0..1201e5b8ce 100644 --- a/backends/events/dinguxsdl/dinguxsdl-events.h +++ b/backends/events/dinguxsdl/dinguxsdl-events.h @@ -25,7 +25,6 @@ #ifndef BACKENDS_EVENTS_SDL_DINGUX_H #define BACKENDS_EVENTS_SDL_DINGUX_H -#if defined(DINGUX) #include "backends/events/sdl/sdl-events.h" @@ -34,5 +33,4 @@ protected: bool remapKey(SDL_Event &ev, Common::Event &event); }; -#endif /* DINGUX */ #endif /* BACKENDS_EVENTS_SDL_DINGUX_H */ 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; diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.h b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h index 9668f45166..5096c010e5 100644 --- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.h +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h @@ -25,7 +25,6 @@ #ifndef BACKENDS_GRAPHICS_SDL_DINGUX_H #define BACKENDS_GRAPHICS_SDL_DINGUX_H -#if defined (DINGUX) #include "backends/graphics/sdl/sdl-graphics.h" @@ -67,5 +66,4 @@ protected: SdlEventSource *_evSrc; }; -#endif /* DINGUX */ #endif /* BACKENDS_GRAPHICS_SDL_DINGUX_H */ |