aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorMax Horn2010-11-28 18:10:12 +0000
committerMax Horn2010-11-28 18:10:12 +0000
commit8399232a437d74a15b3675ad0f349001b87a6480 (patch)
treebd47003ab9a1ab6c8a22e6aef06c9676b54244b3 /backends/graphics
parent1c3ba8bc405b1f249a488480e397a984834744d4 (diff)
downloadscummvm-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')
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp17
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.h2
2 files changed, 7 insertions, 12 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;
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 */