aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-19 02:10:43 +0200
committerJohannes Schickel2013-10-19 22:17:42 +0200
commit20e4a7f0ce86bc93511643e4943b29044c84263f (patch)
tree4a86e49ff722a3aae4d4dbdea082400efd29db9c /backends/graphics
parentdecc013e53ebf2a7c83e599ed676bfec27ade14f (diff)
downloadscummvm-rg350-20e4a7f0ce86bc93511643e4943b29044c84263f.tar.gz
scummvm-rg350-20e4a7f0ce86bc93511643e4943b29044c84263f.tar.bz2
scummvm-rg350-20e4a7f0ce86bc93511643e4943b29044c84263f.zip
TIZEN: Adapt to new OpenGL code.
Thanks to Chris Warren-Smith for testing this a bit.
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/opengl/opengl-graphics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index d4bd0137ed..67ad5aa067 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -154,6 +154,11 @@ protected:
void setMousePosition(int x, int y) { _cursorX = x; _cursorY = y; }
/**
+ * Query the mouse position in physical coordinates.
+ */
+ void getMousePosition(int16 &x, int16 &y) const { x = _cursorX; y = _cursorY; }
+
+ /**
* Set up the mouse position for the (event) system.
*
* @param x X coordinate in physical coordinates.