From 0b46f85b7edb80a3c85e2690ca091d6e9e31f28c Mon Sep 17 00:00:00 2001 From: James Brown Date: Mon, 13 Jan 2003 18:59:53 +0000 Subject: Early init of the scaler - to prevent ComI trying to use a huge window by default. This may require porters to make a small backend change, not to reinit a scaler on hotswap if the display has not been init_size'ed. svn-id: r6449 --- backends/sdl/sdl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/sdl') diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index d6e6e8991d..eaa7a03642 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -191,6 +191,8 @@ void OSystem_SDL::unload_gfx_mode() { } void OSystem_SDL::hotswap_gfx_mode() { + if (!_screen) + return; // Keep around the old _screen & _tmpscreen so we can restore the screen data // after the mode switch. -- cgit v1.2.3