--- np2/wince/np2.cpp 2003/12/05 19:42:03 1.5 +++ np2/wince/np2.cpp 2003/12/26 23:30:26 1.9 @@ -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; @@ -265,7 +269,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT if (sysrunning) { if (LOWORD(wParam) != WA_INACTIVE) { GXResume(); -#if defined(WIN32_PLATFORM_PSPC) +#if defined(GX_DLL) scrnmng_enable(TRUE); #endif scrndraw_redraw(); @@ -275,7 +279,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT else { sysrunning &= ~SYSRUNNING_FORE; soundmng_disable(SNDPROC_MAIN); -#if defined(WIN32_PLATFORM_PSPC) +#if defined(GX_DLL) scrnmng_enable(FALSE); #endif GXSuspend(); @@ -304,9 +308,11 @@ static void processwait(UINT cnt) { timing_setcount(0); framereset(cnt); } +#if !defined(_WIN32_WCE) else { Sleep(1); } +#endif }