SDL: Ensure that SDL is initialized before creating the window object

This commit is contained in:
Cameron Cawley 2020-10-10 18:11:29 +01:00 committed by Thierry Crozat
parent 7ff34bc9ec
commit 0b7085fbea
4 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ void OSystem_SDL_Maemo::init() {
// Use an iconless window for Maemo
// also N900 is hit by SDL_WM_SetIcon bug (window cannot receive input)
// http://bugzilla.libsdl.org/show_bug.cgi?id=586
initSDL();
_window = new SdlIconlessWindow();
OSystem_POSIX::init();

View File

@ -51,6 +51,7 @@ OSystem_MacOSX::~OSystem_MacOSX() {
void OSystem_MacOSX::init() {
// Use an iconless window on OS X, as we use a nicer external icon there.
initSDL();
_window = new SdlIconlessWindow();
#if defined(USE_TASKBAR)

View File

@ -66,6 +66,7 @@ void OSystem_Win32::init() {
_fsFactory = new WindowsFilesystemFactory();
// Create Win32 specific window
initSDL();
_window = new SdlWindow_Win32();
#if defined(USE_TASKBAR)

View File

@ -66,6 +66,7 @@ OSystem_SDL_Symbian::OSystem_SDL_Symbian()
void OSystem_SDL_Symbian::init() {
_RFs = &CEikonEnv::Static()->FsSession();
// Use iconless window: it uses the EScummVM.aif file for the icon.
initSDL();
_window = new SdlIconlessWindow();
_fsFactory = new SymbianFilesystemFactory();
OSystem_SDL::init();