Diff for /np2/macosx/np2.cpp between versions 1.29 and 1.31

version 1.29, 2003/11/05 16:08:59 version 1.31, 2003/11/06 01:58:36
Line 547  static void HandleMouseDown(EventRecord  Line 547  static void HandleMouseDown(EventRecord 
   
 // ----  // ----
   
   static void framereset(UINT waitcnt) {
   
           framecnt = 0;
           toolwin_draw((BYTE)waitcnt);
           if (np2oscfg.DISPCLK & 3) {
                   if (sysmng_workclockrenewal()) {
                           sysmng_updatecaption(3);
                   }
           }
   }
   
 static void processwait(UINT waitcnt) {  static void processwait(UINT waitcnt) {
   
         if (timing_getcount() >= waitcnt) {          if (timing_getcount() >= waitcnt) {
                 framecnt = 0;  
                 timing_setcount(0);                  timing_setcount(0);
                 toolwin_draw((BYTE)waitcnt);                  framereset(waitcnt);
                 if (np2oscfg.DISPCLK & 3) {  
                         if (sysmng_workclockrenewal()) {  
                                 sysmng_updatecaption(3);  
                         }  
                 }  
         }          }
 }  }
   
Line 748  int main(int argc, char *argv[]) { Line 753  int main(int argc, char *argv[]) {
                                                 else {                                                  else {
                                                         timing_setcount(cnt - framecnt);                                                          timing_setcount(cnt - framecnt);
                                                 }                                                  }
                                                 processwait(0);                                                  framereset(0);
                                         }                                          }
                                 }                                  }
                                 else {                                  else {
Line 765  int main(int argc, char *argv[]) { Line 770  int main(int argc, char *argv[]) {
         toggleFullscreen();          toggleFullscreen();
     }      }
           
     toolwin_writeini();  
         pccore_cfgupdate();          pccore_cfgupdate();
   
 #if defined(USE_RESUME)  #if defined(USE_RESUME)
Line 789  int main(int argc, char *argv[]) { Line 793  int main(int argc, char *argv[]) {
         scrnmng_destroy();          scrnmng_destroy();
   
         if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) {          if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) {
                 initsave();                  initsave();                                             // np2.cfg create
               toolwin_writeini();                         // np2.cfg append
         }          }
         TRACETERM();          TRACETERM();
         macossub_term();          macossub_term();

Removed from v.1.29  
changed lines
  Added in v.1.31


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