Diff for /np2/win9x/np2.cpp between versions 1.5 and 1.8

version 1.5, 2003/10/21 11:22:05 version 1.8, 2003/10/23 12:58:44
Line 810  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 810  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                         if (LOWORD(wParam) != WA_INACTIVE) {                          if (LOWORD(wParam) != WA_INACTIVE) {
                                 np2break &= ~NP2BREAK_MAIN;                                  np2break &= ~NP2BREAK_MAIN;
                                 scrnmng_update();                                  scrnmng_update();
                                   keystat_allrelease();
                                 mouse_running(MOUSE_CONT_M);                                  mouse_running(MOUSE_CONT_M);
                         }                          }
                         else {                          else {
Line 1105  int WINAPI WinMain(HINSTANCE hInstance,  Line 1106  int WINAPI WinMain(HINSTANCE hInstance, 
         GetModuleFileName(NULL, modulefile, sizeof(modulefile));          GetModuleFileName(NULL, modulefile, sizeof(modulefile));
         dosio_init();          dosio_init();
         file_setcd(modulefile);          file_setcd(modulefile);
         np2arg_analize(lpszCmdLine);                            // タイミング修正       // ver0.29          np2arg_analize(lpszCmdLine);
         initload();          initload();
   
         srand((unsigned)time(NULL));          srand((unsigned)time(NULL));
   
         np2arg_analize(lpszCmdLine);  
   
         CopyMemory(szClassName, np2oscfg.winid, 3);          CopyMemory(szClassName, np2oscfg.winid, 3);
   
         if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) {          if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) {
Line 1369  int WINAPI WinMain(HINSTANCE hInstance,  Line 1368  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);
                                                 dclock_callback();                                                  dclock_callback();
                                                 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 {

Removed from v.1.5  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>