aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl/openglsdl-graphics.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-15 02:09:46 +0100
committerJohannes Schickel2012-02-15 02:23:37 +0100
commit5b3ebdf43de0bd9f04138a6e841f816f34377021 (patch)
treedc31ec081cc8d4895fda56967928ff04bb44235d /backends/graphics/openglsdl/openglsdl-graphics.cpp
parent05af37c08e9d359d509a29f7c5a85b70c0c10fdd (diff)
downloadscummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.tar.gz
scummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.tar.bz2
scummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.zip
OPENGL: Prevent access to a few more members in the SDL OpenGL code.
Diffstat (limited to 'backends/graphics/openglsdl/openglsdl-graphics.cpp')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 4154b6731b..53688e2fb5 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -376,7 +376,7 @@ bool OpenGLSdlGraphicsManager::loadGFXMode() {
}
// Check if the screen is BGR format
- _formatBGR = _hwscreen->format->Rshift != 0;
+ setFormatIsBGR(_hwscreen->format->Rshift != 0);
if (isFullscreen) {
_lastFullscreenModeWidth = _videoMode.hardwareWidth;
@@ -671,8 +671,7 @@ void OpenGLSdlGraphicsManager::transformMouseCoordinates(Common::Point &point) {
}
void OpenGLSdlGraphicsManager::notifyMousePos(Common::Point mouse) {
- _cursorState.x = mouse.x;
- _cursorState.y = mouse.y;
+ setMousePosition(mouse.x, mouse.y);
}
#endif