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

version 1.5, 2003/10/25 16:01:21 version 1.8, 2003/11/06 01:58:36
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        <time.h>  #include        <time.h>
 #include        <winnls32.h>  #include        <winnls32.h>
 #include        "resource.h"  
 #include        "strres.h"  #include        "strres.h"
   #include        "parts.h"
   #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
 #include        "np2arg.h"  #include        "np2arg.h"
 #include        "dosio.h"  #include        "dosio.h"
Line 724  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 754  int WINAPI WinMain(HINSTANCE hInstance,  Line 760  int WINAPI WinMain(HINSTANCE hInstance, 
         np2arg_analize(lpszCmdLine);                            // タイミング修正       // ver0.29          np2arg_analize(lpszCmdLine);                            // タイミング修正       // ver0.29
         initload();          initload();
   
         srand((unsigned)time(NULL));          rand_setseed((unsigned)time(NULL));
   
         if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) {          if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) {
                 ShowWindow(hwndorg, SW_RESTORE);                  ShowWindow(hwndorg, SW_RESTORE);
Line 950  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 {

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


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