aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl/sdl.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-02-23 11:35:58 +0000
committerTorbjörn Andersson2004-02-23 11:35:58 +0000
commitf5239ada1f6286e687d7ada69e82a6eb31dcfd3b (patch)
tree10249772f0a519446e2551dadd15668c6c1734c6 /backends/sdl/sdl.cpp
parentb2f6ed6f235a27ff127ba7e98c859946ebaa1831 (diff)
downloadscummvm-rg350-f5239ada1f6286e687d7ada69e82a6eb31dcfd3b.tar.gz
scummvm-rg350-f5239ada1f6286e687d7ada69e82a6eb31dcfd3b.tar.bz2
scummvm-rg350-f5239ada1f6286e687d7ada69e82a6eb31dcfd3b.zip
Allow the cursor to reach the bottom of the screen when using the keyboard
to control it, and aspect-ratio correction is activated. svn-id: r13009
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r--backends/sdl/sdl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp
index fc8d5781c5..456ed2c5bf 100644
--- a/backends/sdl/sdl.cpp
+++ b/backends/sdl/sdl.cpp
@@ -175,7 +175,7 @@ void OSystem_SDL::load_gfx_mode() {
// keyboard cursor control, some other better place for it?
km.x_max = _screenWidth * _scaleFactor - 1;
- km.y_max = _screenHeight * _scaleFactor - 1;
+ km.y_max = (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor - 1;
km.delay_time = 25;
km.last_time = 0;
}