aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2006-03-14 14:37:13 +0000
committerMax Horn2006-03-14 14:37:13 +0000
commit0a3e4f04e546c987c9167027c180d652108e31c5 (patch)
tree74a8b2c63408668159e78906db0bd267e05da002 /backends/sdl
parenta68e8c2db959363d8ef0b4cd40062e305603fae1 (diff)
downloadscummvm-rg350-0a3e4f04e546c987c9167027c180d652108e31c5.tar.gz
scummvm-rg350-0a3e4f04e546c987c9167027c180d652108e31c5.tar.bz2
scummvm-rg350-0a3e4f04e546c987c9167027c180d652108e31c5.zip
Use SDL_GetError in an attempt to display slightly more information about the reason(s) SDL_SetVideoMode failed
svn-id: r21291
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp
index fb93a6a322..63df66f1de 100644
--- a/backends/sdl/graphics.cpp
+++ b/backends/sdl/graphics.cpp
@@ -373,7 +373,7 @@ void OSystem_SDL::loadGFXMode() {
// in place of the member vars, do everything etc. etc.. In case
// of a failure, rollback is trivial. Only if everything worked fine
// do we "commit" the changed values to the member vars.
- warning("SDL_SetVideoMode says we can't switch to that mode");
+ warning("SDL_SetVideoMode says we can't switch to that mode (%s)", SDL_GetError());
quit();
}