From 0a3e4f04e546c987c9167027c180d652108e31c5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 14 Mar 2006 14:37:13 +0000 Subject: Use SDL_GetError in an attempt to display slightly more information about the reason(s) SDL_SetVideoMode failed svn-id: r21291 --- backends/sdl/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') 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(); } -- cgit v1.2.3