aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
diff options
context:
space:
mode:
authorJohannes Schickel2011-03-17 17:40:51 +0100
committerJohannes Schickel2011-03-17 18:35:18 +0100
commit019aa63b1580a2b629f45aa436cae47b0b330794 (patch)
tree21d74978f4f0cce7b00190f6b6315039ef2ae91c /backends/graphics/opengl
parente08683d939d621f20b0376f9da561f06c4944e31 (diff)
downloadscummvm-rg350-019aa63b1580a2b629f45aa436cae47b0b330794.tar.gz
scummvm-rg350-019aa63b1580a2b629f45aa436cae47b0b330794.tar.bz2
scummvm-rg350-019aa63b1580a2b629f45aa436cae47b0b330794.zip
OPENGL: Fix "Original" mode by setting up the corret screen dimensions.
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 6bd790237a..2407f5d989 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -903,8 +903,8 @@ void OpenGLGraphicsManager::refreshCursorScale() {
void OpenGLGraphicsManager::calculateDisplaySize(int &width, int &height) {
if (_videoMode.mode == OpenGL::GFX_ORIGINAL) {
- width = _videoMode.overlayWidth;
- height = _videoMode.overlayHeight;
+ width = _videoMode.screenWidth;
+ height = _videoMode.screenHeight;
} else {
width = _videoMode.hardwareWidth;
height = _videoMode.hardwareHeight;