diff options
author | Nicolas Bacca | 2004-05-30 13:24:51 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-05-30 13:24:51 +0000 |
commit | 055f9bf8647b842c69e435f672bfe3d7fd20778c (patch) | |
tree | 05c707d5e79e2aab3bf5cf39f0bac5e1f8aca897 /backends/wince/CEDevice.cpp | |
parent | 65949528d88221c6c3eb8305b0f48517d875c0ac (diff) | |
download | scummvm-rg350-055f9bf8647b842c69e435f672bfe3d7fd20778c.tar.gz scummvm-rg350-055f9bf8647b842c69e435f672bfe3d7fd20778c.tar.bz2 scummvm-rg350-055f9bf8647b842c69e435f672bfe3d7fd20778c.zip |
Ozone tweaks (add virtual screen and infos) / Fix initial keyboard bug (Monkey 1 and 2)
svn-id: r13904
Diffstat (limited to 'backends/wince/CEDevice.cpp')
-rw-r--r-- | backends/wince/CEDevice.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/backends/wince/CEDevice.cpp b/backends/wince/CEDevice.cpp index 762db9e8e8..0ef165f6f2 100644 --- a/backends/wince/CEDevice.cpp +++ b/backends/wince/CEDevice.cpp @@ -24,6 +24,8 @@ #include <SDL.h> +#include "wince-sdl.h" + #define KEY_CALENDAR 0xc1 #define KEY_CONTACTS 0xc2 #define KEY_INBOX 0xc3 @@ -46,19 +48,23 @@ const int SMARTPHONE_KEYS_MAPPING[] = { bool CEDevice::hasPocketPCResolution() { - return (GetSystemMetrics(SM_CXSCREEN) < 320 && GetSystemMetrics(SM_CXSCREEN) >= 240); + if (OSystem_WINCE3::isOzone() && hasWideResolution()) + return true; + return (OSystem_WINCE3::getScreenWidth() < 320 && OSystem_WINCE3::getScreenWidth() >= 240); } bool CEDevice::hasDesktopResolution() { - return (GetSystemMetrics(SM_CXSCREEN) >= 320); + if (OSystem_WINCE3::isOzone() && hasWideResolution()) + return true; + return (OSystem_WINCE3::getScreenWidth() >= 320); } bool CEDevice::hasWideResolution() { - return (GetSystemMetrics(SM_CXSCREEN) >= 640 || GetSystemMetrics(SM_CYSCREEN) >= 640); + return (OSystem_WINCE3::getScreenWidth() >= 640 || OSystem_WINCE3::getScreenHeight() >= 640); } bool CEDevice::hasSmartphoneResolution() { - return (GetSystemMetrics(SM_CXSCREEN) < 240); + return (OSystem_WINCE3::getScreenWidth() < 240); } Common::String CEDevice::getKeyName(unsigned int keyCode) { |