diff options
author | Max Horn | 2006-03-14 14:37:13 +0000 |
---|---|---|
committer | Max Horn | 2006-03-14 14:37:13 +0000 |
commit | 0a3e4f04e546c987c9167027c180d652108e31c5 (patch) | |
tree | 74a8b2c63408668159e78906db0bd267e05da002 /backends/sdl | |
parent | a68e8c2db959363d8ef0b4cd40062e305603fae1 (diff) | |
download | scummvm-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.cpp | 2 |
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(); } |