aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl/openglsdl-graphics.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-03-17 17:37:42 +0100
committerJohannes Schickel2011-03-17 17:37:42 +0100
commite08683d939d621f20b0376f9da561f06c4944e31 (patch)
tree416eaeaa5c5ac6c149ce8d2fc424f1fbb8973cc9 /backends/graphics/openglsdl/openglsdl-graphics.h
parentcb6f02f7ef6c5c81892cd8f8bd2f5e323e388fa4 (diff)
downloadscummvm-rg350-e08683d939d621f20b0376f9da561f06c4944e31.tar.gz
scummvm-rg350-e08683d939d621f20b0376f9da561f06c4944e31.tar.bz2
scummvm-rg350-e08683d939d621f20b0376f9da561f06c4944e31.zip
OPENGL: Refactor warpMouse.
Now subclasses will not need to worry about the scaling logic themselves, but just need to implement setInternalMousePosition, which should handles setting the system's mouse coordinates.
Diffstat (limited to 'backends/graphics/openglsdl/openglsdl-graphics.h')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.h b/backends/graphics/openglsdl/openglsdl-graphics.h
index d39c0814de..309301c25a 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.h
+++ b/backends/graphics/openglsdl/openglsdl-graphics.h
@@ -48,8 +48,6 @@ public:
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
#endif
- virtual void warpMouse(int x, int y);
-
virtual bool notifyEvent(const Common::Event &event);
virtual void updateScreen();
@@ -86,6 +84,8 @@ protected:
*/
virtual bool setupFullscreenMode();
+ virtual void setInternalMousePosition(int x, int y);
+
int _lastFullscreenModeWidth;
int _lastFullscreenModeHeight;
int _desktopWidth;