--- np2/wince/np2.cpp 2003/12/05 19:42:03 1.5 +++ np2/wince/np2.cpp 2003/12/19 23:16:06 1.8 @@ -232,8 +232,12 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT #if !defined(GX_DLL) case WM_MOVE: +#if !defined(_WIN32_WCE) if (!(GetWindowLong(hWnd, GWL_STYLE) & - (WS_MAXIMIZE | WS_MINIMIZE))) { + (WS_MAXIMIZE | WS_MINIMIZE))) +#endif + { + RECT rc; GetWindowRect(hWnd, &rc); np2oscfg.winx = rc.left; np2oscfg.winy = rc.top; @@ -304,9 +308,11 @@ static void processwait(UINT cnt) { timing_setcount(0); framereset(cnt); } +#if !defined(_WIN32_WCE) else { Sleep(1); } +#endif }