mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
SDL: Ensure that SDL is initialized before creating the window object
This commit is contained in:
parent
7ff34bc9ec
commit
0b7085fbea
@ -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();
|
||||
|
@ -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)
|
||||
|
@ -66,6 +66,7 @@ void OSystem_Win32::init() {
|
||||
_fsFactory = new WindowsFilesystemFactory();
|
||||
|
||||
// Create Win32 specific window
|
||||
initSDL();
|
||||
_window = new SdlWindow_Win32();
|
||||
|
||||
#if defined(USE_TASKBAR)
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user