diff options
author | Nicolas Bacca | 2003-07-21 22:30:15 +0000 |
---|---|---|
committer | Nicolas Bacca | 2003-07-21 22:30:15 +0000 |
commit | d79ae6f1f28da20530ce9df61a9ce4cc5160d3cc (patch) | |
tree | 324242d016b807bf279e3a835d49128b4267999a /backends/wince | |
parent | b6b23c6352250534f2e4831908a1aaf917c09346 (diff) | |
download | scummvm-rg350-d79ae6f1f28da20530ce9df61a9ce4cc5160d3cc.tar.gz scummvm-rg350-d79ae6f1f28da20530ce9df61a9ce4cc5160d3cc.tar.bz2 scummvm-rg350-d79ae6f1f28da20530ce9df61a9ce4cc5160d3cc.zip |
Fix for #775275 : debugger support on WinCE
svn-id: r9114
Diffstat (limited to 'backends/wince')
-rw-r--r-- | backends/wince/wince.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/backends/wince/wince.cpp b/backends/wince/wince.cpp index ab12d86559..ac5584d7dd 100644 --- a/backends/wince/wince.cpp +++ b/backends/wince/wince.cpp @@ -473,6 +473,10 @@ bool closing = false; bool smartphone = false; bool high_res = false; +bool isSmartphone() { + return smartphone; +} + void close_GAPI() { g_config->setBool("Sound", sound_activated, "wince"); g_config->setInt("DisplayMode", GetScreenMode(), "wince"); @@ -790,9 +794,12 @@ void runGame(char *game_name) { int argc = 4; char* argv[4]; char argdir[MAX_PATH]; - char music[100]; + char music[50]; bool no_music; + if (!game_name) + return; + select_game = false; argv[0] = NULL; @@ -808,10 +815,7 @@ void runGame(char *game_name) { argv[2] = music; argv[3] = game_name; - - if (!argv[3]) - return; - + // No default toolbar for zak256 /* if (strcmp(game_name, "zak256") == 0) @@ -883,14 +887,6 @@ LRESULT CALLBACK OSystem_WINCE3::WndProc(HWND hWnd, UINT message, WPARAM wParam, if (!select_game) wm = (OSystem_WINCE3*)GetWindowLong(hWnd, GWL_USERDATA); - - if (!select_game && monkey_keyboard && ( - g_scumm->VAR(g_scumm->VAR_ROOM) != 108 && // monkey 2 - g_scumm->VAR(g_scumm->VAR_ROOM) != 90)) { // monkey 1 floppy - monkey_keyboard = false; - draw_keyboard = false; - toolbar_drawn = false; - } if (smartphone) { if (SmartphoneWndProc(hWnd, message, wParam, lParam, wm)) @@ -1445,6 +1441,14 @@ void OSystem_WINCE3::copy_rect(const byte *buf, int pitch, int x, int y, int w, if (!hide_cursor && _mouse_drawn) undraw_mouse(); + if (!select_game && monkey_keyboard && ( + g_scumm->VAR(g_scumm->VAR_ROOM) != 108 && // monkey 2 + g_scumm->VAR(g_scumm->VAR_ROOM) != 90)) { // monkey 1 floppy + monkey_keyboard = false; + draw_keyboard = false; + toolbar_drawn = false; + } + /* Clip */ if (x < 0) { w += x; |