|
|
| version 1.6, 2003/10/26 08:59:53 | version 1.8, 2003/11/06 01:58:36 |
|---|---|
| Line 725 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 725 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| return(0L); | return(0L); |
| } | } |
| static void framereset(void) { | |
| framecnt = 0; | |
| sysmng_updatecaption(); | |
| } | |
| static void processwait(UINT waitcnt) { | static void processwait(UINT waitcnt) { |
| if (timing_getcount() >= waitcnt) { | if (timing_getcount() >= waitcnt) { |
| timing_setcount(0); | timing_setcount(0); |
| framecnt = 0; | framereset(); |
| } | } |
| else { | else { |
| Sleep(1); | Sleep(1); |
| Line 951 int WINAPI WinMain(HINSTANCE hInstance, | Line 956 int WINAPI WinMain(HINSTANCE hInstance, |
| else { | else { |
| timing_setcount(cnt - framecnt); | timing_setcount(cnt - framecnt); |
| } | } |
| processwait(0); | framereset(); |
| } | } |
| } | } |
| else { | else { |