diff options
author | Nicolas Bacca | 2004-05-09 14:27:53 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-05-09 14:27:53 +0000 |
commit | 5d81e3b7856d28e0d881ff04bd7e1c1d7ac71ab1 (patch) | |
tree | 5fbcb8f4d6fa5aa1c18bba29f32664333ddea627 /backends | |
parent | ab9598e2f56c62be37584e515d18296fe40730c7 (diff) | |
download | scummvm-rg350-5d81e3b7856d28e0d881ff04bd7e1c1d7ac71ab1.tar.gz scummvm-rg350-5d81e3b7856d28e0d881ff04bd7e1c1d7ac71ab1.tar.bz2 scummvm-rg350-5d81e3b7856d28e0d881ff04bd7e1c1d7ac71ab1.zip |
Tweak SDL init for WinCE backend
svn-id: r13816
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 99093380a4..2acfa27526 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -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; |