diff options
| author | Travis Howell | 2003-10-10 10:03:02 +0000 | 
|---|---|---|
| committer | Travis Howell | 2003-10-10 10:03:02 +0000 | 
| commit | 90d35c0f135ae020c62ef57b277f4042a5c5a07e (patch) | |
| tree | 5bc24304e8992fae2064d3513bd3f864279c19e6 | |
| parent | 4ae7e06a1df247143821c4b0bb051cfd3d051838 (diff) | |
| download | scummvm-rg350-90d35c0f135ae020c62ef57b277f4042a5c5a07e.tar.gz scummvm-rg350-90d35c0f135ae020c62ef57b277f4042a5c5a07e.tar.bz2 scummvm-rg350-90d35c0f135ae020c62ef57b277f4042a5c5a07e.zip | |
Add old change from SDL backends, give error if video mode isn't support.
svn-id: r10712
| -rw-r--r-- | backends/sdl/sdl_gl.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| 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) | 
