Diff for /np2/macosx/np2.cpp between versions 1.30 and 1.32

version 1.30, 2003/11/05 17:58:01 version 1.32, 2003/11/06 18:27:59
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 615  int main(int argc, char *argv[]) { Line 620  int main(int argc, char *argv[]) {
 #ifdef OPENING_WAIT  #ifdef OPENING_WAIT
         UINT32          tick;          UINT32          tick;
 #endif  #endif
     
         dosio_init();          dosio_init();
         file_setcd(target);          file_setcd(target);
   
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 905  static pascal OSStatus np2windowevent(Ev Line 910  static pascal OSStatus np2windowevent(Ev
                 switch (whatHappened)                  switch (whatHappened)
                 {                  {
                     case kEventWindowClose:                      case kEventWindowClose:
                         np2running = FALSE;                          taskmng_exit();
                         result = noErr;                          result = noErr;
                         break;                          break;
                     case kEventWindowActivated:                      case kEventWindowActivated:
Line 1008  static void setUpCarbonEvent(void) { Line 1013  static void setUpCarbonEvent(void) {
         InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent),          InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent),
                                                                 GetEventTypeCount(windEventList),                                                                  GetEventTypeCount(windEventList),
                                                                 windEventList, 0, NULL);                                                                  windEventList, 0, NULL);
     InstallStandardEventHandler(GetWindowEventTarget(hWndMain));  
 }  }
   
 static bool setupMainWindow(void) {  static bool setupMainWindow(void) {

Removed from v.1.30  
changed lines
  Added in v.1.32


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