| version 1.2, 2003/10/18 10:00:29 | version 1.4, 2003/10/23 12:58:44 | 
| Line 756  int WINAPI WinMain(HINSTANCE hInstance, | Line 756  int WINAPI WinMain(HINSTANCE hInstance, | 
 |  |  | 
 | srand((unsigned)time(NULL)); | srand((unsigned)time(NULL)); | 
 |  |  | 
 | //      np2arg_analize(lpszCmdLine); |  | 
 |  |  | 
 | if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) { | if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) { | 
 | ShowWindow(hwndorg, SW_RESTORE); | ShowWindow(hwndorg, SW_RESTORE); | 
 | SetForegroundWindow(hwndorg); | SetForegroundWindow(hwndorg); | 
| Line 930  int WINAPI WinMain(HINSTANCE hInstance, | Line 928  int WINAPI WinMain(HINSTANCE hInstance, | 
 | } | } | 
 | else {                                                          // auto skip | else {                                                          // auto skip | 
 | if (!waitcnt) { | if (!waitcnt) { | 
 |  | UINT cnt; | 
 | joy_flash(); | joy_flash(); | 
 | mouse_callback(); | mouse_callback(); | 
 | pccore_exec(framecnt == 0); | pccore_exec(framecnt == 0); | 
 | framecnt++; | framecnt++; | 
| if (timing_getcount() < framecnt) { | cnt = timing_getcount(); | 
|  | if (framecnt > cnt) { | 
 | waitcnt = framecnt; | waitcnt = framecnt; | 
 | if (framemax > 1) { | if (framemax > 1) { | 
 | framemax--; | framemax--; | 
 | } | } | 
 | } | } | 
 | else if (framecnt >= framemax) { | else if (framecnt >= framemax) { | 
 | waitcnt = framecnt; |  | 
 | if (framemax < 12) { | if (framemax < 12) { | 
 | framemax++; | framemax++; | 
 | } | } | 
 |  | if (cnt >= 12) { | 
 |  | timing_reset(); | 
 |  | } | 
 |  | else { | 
 |  | timing_setcount(cnt - framecnt); | 
 |  | } | 
 |  | framecnt = 0; | 
 | } | } | 
 | } | } | 
 | else { | else { |