Diff for /np2/macosx/np2.cpp between versions 1.43 and 1.44

version 1.43, 2003/12/04 17:48:17 version 1.44, 2003/12/05 17:00:09
Line 827  int main(int argc, char *argv[]) { Line 827  int main(int argc, char *argv[]) {
                 }                  }
         }          }
           
         GetWindowBounds(hWndMain, kWindowGlobalPortRgn, &bounds);  
         if ((np2oscfg.winx != bounds.left) || (np2oscfg.winy != bounds.top)) {  
                 np2oscfg.winx = bounds.left;  
                 np2oscfg.winy = bounds.top;  
                 sysmng_update(SYS_UPDATEOSCFG);  
         }  
   
         np2running = FALSE;          np2running = FALSE;
     menu_setrecording(true);      menu_setrecording(true);
   
Line 841  int main(int argc, char *argv[]) { Line 834  int main(int argc, char *argv[]) {
         toggleFullscreen();          toggleFullscreen();
     }      }
           
           GetWindowBounds(hWndMain, kWindowGlobalPortRgn, &bounds);
           if ((np2oscfg.winx != bounds.left) || (np2oscfg.winy != bounds.top)) {
                   np2oscfg.winx = bounds.left;
                   np2oscfg.winy = bounds.top;
                   sysmng_update(SYS_UPDATEOSCFG);
           }
   
         pccore_cfgupdate();          pccore_cfgupdate();
   
 #if defined(USE_RESUME)  #if defined(USE_RESUME)
Line 938  static pascal OSStatus np2appevent (Even Line 938  static pascal OSStatus np2appevent (Even
                     result = noErr;                      result = noErr;
                     break;                      break;
                 case kEventMouseDown:                  case kEventMouseDown:
                     if (buttonKind == kEventMouseButtonSecondary | modif & controlKey) {                      if (buttonKind == kEventMouseButtonSecondary || modif & cmdKey) {
                         mousemng_buttonevent(MOUSEMNG_RIGHTDOWN);                          mousemng_buttonevent(MOUSEMNG_RIGHTDOWN);
                     }                      }
                     else {                      else {
Line 947  static pascal OSStatus np2appevent (Even Line 947  static pascal OSStatus np2appevent (Even
                     result=noErr;                      result=noErr;
                     break;                      break;
                 case kEventMouseUp:                  case kEventMouseUp:
                     if (buttonKind == kEventMouseButtonSecondary | modif & controlKey) {                      if (buttonKind == kEventMouseButtonSecondary || modif & cmdKey) {
                         mousemng_buttonevent(MOUSEMNG_RIGHTUP);                          mousemng_buttonevent(MOUSEMNG_RIGHTUP);
                     }                      }
                     else if (buttonKind == kEventMouseButtonTertiary) {                      else if (buttonKind == kEventMouseButtonTertiary) {
Line 1162  static void toggleFullscreen(void) { Line 1162  static void toggleFullscreen(void) {
         backupheight = bounds.bottom - bounds.top;          backupheight = bounds.bottom - bounds.top;
         toolwin = np2oscfg.toolwin;          toolwin = np2oscfg.toolwin;
         toolwin_close();          toolwin_close();
           np2oscfg.winx = bounds.left;
           np2oscfg.winy = bounds.top;
         DisposeWindow(hWndMain);          DisposeWindow(hWndMain);
         BeginFullScreen(&bkfullscreen, 0, &w, &h, &hWndMain, NULL, fullScreenAllowEvents);                BeginFullScreen(&bkfullscreen, 0, &w, &h, &hWndMain, NULL, fullScreenAllowEvents);      
         DisableMenuItem(menu, IDM_ROLNORMAL);          DisableMenuItem(menu, IDM_ROLNORMAL);

Removed from v.1.43  
changed lines
  Added in v.1.44


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