From 0fa15ffa6a70c72ace03c7818804092041afcb23 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Mon, 5 May 2003 07:18:47 +0000 Subject: Handle COMI UI svn-id: r7332 --- backends/wince/pocketpc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'backends/wince/pocketpc.cpp') diff --git a/backends/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp index 4167c03f6a..b0f5924f25 100644 --- a/backends/wince/pocketpc.cpp +++ b/backends/wince/pocketpc.cpp @@ -30,11 +30,13 @@ extern int num_of_dirty_square; extern bool toolbar_drawn; extern Engine *engine; extern bool sound_activated; +extern char is_demo; extern ToolbarSelected getToolbarSelection(int, int); extern void redrawSoundItem(); extern int mapKey(int key); extern void handleSelectGame(int, int); +extern void do_quit(); const char KEYBOARD_MAPPING_ALPHA_HIGH[] = {"ABCDEFGHIJKLM"}; const char KEYBOARD_MAPPING_NUMERIC_HIGH[] = {"12345"}; @@ -216,7 +218,7 @@ BOOL PPCWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, OSystem_W */ /*}*/ wm->_event.event_code = OSystem::EVENT_KEYDOWN; - if (g_scumm->_features & GF_OLD256) + if (g_scumm->_features & GF_OLD256 || g_scumm->_gameId == GID_CMI) wm->_event.kbd.ascii = 319; else wm->_event.kbd.ascii = g_scumm->_vars[g_scumm->VAR_SAVELOADDIALOG_KEY]; @@ -228,6 +230,8 @@ BOOL PPCWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, OSystem_W toolbar_drawn = false; break; case ToolbarSkip: + if (is_demo) + do_quit(); if (is_simon) { ((SimonState*)engine)->_exit_cutscene = true; break; -- cgit v1.2.3