aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-11-15 12:20:22 +0000
committerTorbjörn Andersson2009-11-15 12:20:22 +0000
commit3e34b1bbab49aa5b0e4a701589fcfe93c03e93d7 (patch)
treeba2a63845f956299aaab3464dedeb039ef0e4c08
parentb25afc85a69573ee81cebce788f839cba9c792f7 (diff)
downloadscummvm-rg350-3e34b1bbab49aa5b0e4a701589fcfe93c03e93d7.tar.gz
scummvm-rg350-3e34b1bbab49aa5b0e4a701589fcfe93c03e93d7.tar.bz2
scummvm-rg350-3e34b1bbab49aa5b0e4a701589fcfe93c03e93d7.zip
Made Alt-s (screenshot) work again.
svn-id: r45921
-rw-r--r--backends/platform/sdl/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp
index 3da3958738..4b36de8df0 100644
--- a/backends/platform/sdl/events.cpp
+++ b/backends/platform/sdl/events.cpp
@@ -254,7 +254,7 @@ bool OSystem_SDL::handleKeyDown(SDL_Event &ev, Common::Event &event) {
sprintf(filename, "scummvm%05d.bmp", n);
file = SDL_RWFromFile(filename, "r");
if (!file)
- return false;
+ break;
SDL_RWclose(file);
}
if (saveScreenshot(filename))