From 90d35c0f135ae020c62ef57b277f4042a5c5a07e Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 10 Oct 2003 10:03:02 +0000 Subject: Add old change from SDL backends, give error if video mode isn't support. svn-id: r10712 --- backends/sdl/sdl_gl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backends/sdl') diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp index b1867fde31..a6eed42ea6 100644 --- a/backends/sdl/sdl_gl.cpp +++ b/backends/sdl/sdl_gl.cpp @@ -203,8 +203,10 @@ void OSystem_SDL_OpenGL::load_gfx_mode() { _hwscreen = SDL_SetVideoMode(_screenWidth * _scaleFactor, (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor, 16, _full_screen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE ); - if (_hwscreen == NULL) - error("_hwscreen failed"); + if (_hwscreen == NULL) { + warning("SDL_SetVideoMode says we can't switch to that mode"); + quit(); + } // Distinguish 555 and 565 mode if (_hwscreen->format->Rmask == 0x7C00) -- cgit v1.2.3