aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorTravis Howell2003-07-10 10:24:06 +0000
committerTravis Howell2003-07-10 10:24:06 +0000
commit6480a00855d88615ab8f19798d82dc93bdce46ae (patch)
treefb03808143ba95f19a006256b011ccf674e7f177 /backends/sdl
parenta9ae95a64e34b80826795eca28c456ac6bab620f (diff)
downloadscummvm-rg350-6480a00855d88615ab8f19798d82dc93bdce46ae.tar.gz
scummvm-rg350-6480a00855d88615ab8f19798d82dc93bdce46ae.tar.bz2
scummvm-rg350-6480a00855d88615ab8f19798d82dc93bdce46ae.zip
aspect ratio correction
svn-id: r8897
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl_gl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp
index a7bea1c9f0..e58ce505e1 100644
--- a/backends/sdl/sdl_gl.cpp
+++ b/backends/sdl/sdl_gl.cpp
@@ -577,8 +577,8 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
return 1;
} else if (param == PROP_TOGGLE_ASPECT_RATIO) {
- _adjustAspectRatio ^= true;
if (_usingOpenGL) {
+ _adjustAspectRatio ^= true;
if (!_adjustAspectRatio) {
// Don't use the whole screen (black borders)
fb2gl.init(0, 0, 0, 15, _glFlags);
@@ -617,6 +617,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
} else {
if (_screenHeight == 200) {
assert(_hwscreen != 0);
+ _adjustAspectRatio ^= true;
hotswap_gfx_mode();
}
}