From 07079466b32c0ce041abc709e8d9c0796023716e Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Sat, 15 Jun 2002 10:58:14 +0000 Subject: defined current_tick variable and repaired broken build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1008 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/uisw32.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'uisimulator/win32/uisw32.c') diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index 77ad917461..2661d74cb0 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c @@ -24,6 +24,7 @@ #include "button.h" #include "thread.h" #include "thread-win32.h" +#include "kernel.h" // extern functions extern void app_main (void *); // mod entry point @@ -51,6 +52,9 @@ LRESULT GUIWndProc ( switch (uMsg) { + case WM_TIMER: + current_tick++; + return TRUE; case WM_ACTIVATE: if (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE) bActive = true; @@ -58,6 +62,7 @@ LRESULT GUIWndProc ( bActive = false; return TRUE; case WM_CREATE: + SetTimer (hWnd, TIMER_EVENT, 50, NULL); // load background image hBkgnd = (HBITMAP)LoadImage (GetModuleHandle (NULL), MAKEINTRESOURCE(IDB_UI), IMAGE_BITMAP, 0, 0, LR_VGACOLOR); @@ -186,6 +191,7 @@ LRESULT GUIWndProc ( } case WM_CLOSE: // close simulator + KillTimer (hWnd, TIMER_EVENT); hGUIWnd = NULL; PostQuitMessage (0); break; -- cgit v1.2.3