diff options
author | Nicolas Bacca | 2005-03-26 09:04:33 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-03-26 09:04:33 +0000 |
commit | 61aab60064882360286d1d00f801e6eeeeb5df8c (patch) | |
tree | a002eb76c24929713d4c628d61ec8299f51d61af /backends/wince | |
parent | 2938c66276beb59be6db0bb4fd6ae8d37fac634b (diff) | |
download | scummvm-rg350-61aab60064882360286d1d00f801e6eeeeb5df8c.tar.gz scummvm-rg350-61aab60064882360286d1d00f801e6eeeeb5df8c.tar.bz2 scummvm-rg350-61aab60064882360286d1d00f801e6eeeeb5df8c.zip |
Should fix key mapping issues
svn-id: r17238
Diffstat (limited to 'backends/wince')
-rw-r--r-- | backends/wince/wince-sdl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/wince/wince-sdl.cpp b/backends/wince/wince-sdl.cpp index 25971e2212..ab9ed5bd62 100644 --- a/backends/wince/wince-sdl.cpp +++ b/backends/wince/wince-sdl.cpp @@ -987,16 +987,16 @@ void OSystem_WINCE3::loadGFXMode() { // Always use full screen mode to have a "clean screen" displayWidth = _screenWidth * _scaleFactorXm / _scaleFactorXd; - displayHeight = _screenHeight * _scaleFactorYm / _scaleFactorYd; + displayHeight = _screenHeight * _scaleFactorYm / _scaleFactorYd; // FIXME if (!(displayWidth > GetSystemMetrics(SM_CXSCREEN))) { // no rotation displayWidth = GetSystemMetrics(SM_CXSCREEN); - displayHeight = GetSystemMetrics(SM_CYSCREEN); + displayHeight = GetSystemMetrics(SM_CYSCREEN); } _hwscreen = SDL_SetVideoMode(displayWidth, displayHeight, 16, SDL_FULLSCREEN | SDL_SWSURFACE); - if (_hwscreen == NULL) { + if (_hwscreen == NULL) { // DON'T use error(), as this tries to bring up the debug // console, which WON'T WORK now that _hwscreen is hosed. @@ -1014,8 +1014,8 @@ void OSystem_WINCE3::loadGFXMode() { // of a failure, rollback is trivial. Only if everything worked fine // do we "commit" the changed values to the member vars. warning("SDL_SetVideoMode says we can't switch to that mode"); - quit(); - } + quit(); + } // // Create the surface used for the graphics in 16 bit before scaling, and also the overlay @@ -1534,7 +1534,7 @@ bool OSystem_WINCE3::pollEvent(Event &event) { _keyRepeat = 0; } - if (CEActions::Instance()->performMapped(ev.key.keysym.sym, true)) + if (!CEActions::Instance()->mappingActive() && CEActions::Instance()->performMapped(ev.key.keysym.sym, true)) return true; } @@ -1555,7 +1555,7 @@ bool OSystem_WINCE3::pollEvent(Event &event) { _lastKeyPressed = 0; } - if (CEActions::Instance()->performMapped(ev.key.keysym.sym, false)) + if (!CEActions::Instance()->mappingActive() && CEActions::Instance()->performMapped(ev.key.keysym.sym, false)) return true; } |