Tweak SDL init for WinCE backend
svn-id: r13816
This commit is contained in:
parent
ab9598e2f5
commit
5d81e3b785
1 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,13 @@ void OSystem_SDL::init_intern() {
|
|||
int joystick_num = ConfMan.getInt("joystick_num");
|
||||
uint32 sdlFlags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
if (ConfMan.hasKey("use_GDI") && ConfMan.getBool("use_GDI")) {
|
||||
SDL_VideoInit("windib", 0);
|
||||
sdlFlags ^= SDL_INIT_VIDEO;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (joystick_num > -1)
|
||||
sdlFlags |= SDL_INIT_JOYSTICK;
|
||||
|
||||
|
@ -55,11 +62,17 @@ void OSystem_SDL::init_intern() {
|
|||
SDL_EnableUNICODE(1);
|
||||
|
||||
cksum_valid = false;
|
||||
#ifndef _WIN32_WCE
|
||||
_mode = GFX_DOUBLESIZE;
|
||||
_scaleFactor = 2;
|
||||
_scaler_proc = Normal2x;
|
||||
_full_screen = ConfMan.getBool("fullscreen");
|
||||
_adjustAspectRatio = ConfMan.getBool("aspect_ratio");
|
||||
#else
|
||||
_mode = GFX_NORMAL;
|
||||
_full_screen = true;
|
||||
_adjustAspectRatio = false;
|
||||
#endif
|
||||
_mode_flags = 0;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue