diff options
author | Nicolas Bacca | 2002-07-18 22:51:29 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-07-18 22:51:29 +0000 |
commit | 8e3ba98de31a6c5b8a260836cb116e5f9d5b208e (patch) | |
tree | 5be4c92ba06a7ddb71add54f401df6c1cd46d3b8 | |
parent | 986987110b225e24673dee8670a08042e484d32a (diff) | |
download | scummvm-rg350-8e3ba98de31a6c5b8a260836cb116e5f9d5b208e.tar.gz scummvm-rg350-8e3ba98de31a6c5b8a260836cb116e5f9d5b208e.tar.bz2 scummvm-rg350-8e3ba98de31a6c5b8a260836cb116e5f9d5b208e.zip |
WinCE GUI friendly
svn-id: r4594
-rw-r--r-- | simon/simon.cpp | 21 | ||||
-rw-r--r-- | simon/simonitems.cpp | 14 |
2 files changed, 35 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 2ce4dd91dc..b2e71a54ac 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -31,6 +31,14 @@ byte *sdl_buf_attached; SimonState *g_simon; +#ifdef _WIN32_WCE + +extern bool toolbar_drawn; +extern bool draw_keyboard; + +#endif + + SimonState *SimonState::create(OSystem *syst, MidiDriver *driver) { SimonState *s = new SimonState; @@ -2391,6 +2399,15 @@ get_out:; do { delay(10); } while (i == _timer_4); + +#ifdef _WIN32_WCE + + if (draw_keyboard) { + draw_keyboard = false; + toolbar_drawn = false; + } + +#endif } @@ -4304,6 +4321,10 @@ void SimonState::delay(uint delay) break; case OSystem::EVENT_LBUTTONDOWN:_left_button_down++; +#ifdef _WIN32_WCE + sdl_mouse_x = event.mouse.x; + sdl_mouse_y = event.mouse.y; +#endif break; case OSystem::EVENT_RBUTTONDOWN:_exit_cutscene = true; diff --git a/simon/simonitems.cpp b/simon/simonitems.cpp index 123d6c568e..04f4c02eb9 100644 --- a/simon/simonitems.cpp +++ b/simon/simonitems.cpp @@ -23,6 +23,13 @@ #include "stdafx.h" #include "simon.h" +#ifdef _WIN32_WCE + +extern bool toolbar_drawn; +extern bool draw_keyboard; + +#endif + int SimonState::runScript() { byte opcode; @@ -744,6 +751,13 @@ int SimonState::runScript() break; case 132:{ +#ifdef _WIN32_WCE + + if (!draw_keyboard) { + draw_keyboard = true; + toolbar_drawn = false; + } +#endif o_save_game(); } break; |