Diff for /xmil/MacOSX/xmil.cpp between versions 1.1 and 1.2

version 1.1, 2004/08/10 14:38:56 version 1.2, 2004/08/10 18:57:39
Line 60  static pascal OSErr handleQuitApp(const  Line 60  static pascal OSErr handleQuitApp(const 
   
 static void InitToolBox(void) {  static void InitToolBox(void) {
   
         FlushEvents(everyEvent, 0);  
         InitCursor();          InitCursor();
   
         AEInstallEventHandler(kCoreEventClass, kAEQuitApplication,          AEInstallEventHandler(kCoreEventClass, kAEQuitApplication,
Line 69  static void InitToolBox(void) { Line 68  static void InitToolBox(void) {
   
 static void MenuBarInit(void) {  static void MenuBarInit(void) {
   
         Handle          hdl;      OSStatus    err;
         MenuHandle      hmenu;          IBNibRef        nibRef;
       
         hdl = GetNewMBar(IDM_MAINMENU);      err = CreateNibReference(CFSTR("main"), &nibRef);
         if (hdl == NULL) {      if (err != noErr) ExitToShell();
                 ExitToShell();      err = SetMenuBarFromNib(nibRef, CFSTR("MenuBar"));
         }  
         SetMenuBar(hdl);  
         hmenu = GetMenuHandle(IDM_APPLE);  
         if (hmenu) {  
                 AppendResMenu(hmenu, 'DRVR');  
         }  
   
         if (!xmiloscfg.Z80SAVE) {          if (!xmiloscfg.Z80SAVE) {
                 hmenu = GetMenuHandle(IDM_OTHER);                  DeleteMenuItem(GetMenuRef(IDM_OTHER), 7);
                 if (hmenu) {  
                         DeleteMenuItem(hmenu, 7);  
                 }  
         }          }
   
         hmenu = GetMenuHandle(IDM_FDD1);  
         SetItemCmd(hmenu, LoWord(IDM_FDD1OPEN), 'D');  
         SetMenuItemModifiers(hmenu, LoWord(IDM_FDD1OPEN), kMenuShiftModifier);  
         SetItemCmd(hmenu, LoWord(IDM_FDD1EJECT), 'E');  
         SetMenuItemModifiers(hmenu, LoWord(IDM_FDD1EJECT), kMenuShiftModifier);  
         EnableMenuItem(GetMenuHandle(IDM_DEVICE), LoWord(IDM_MOUSE));  
   
         DeleteMenu(IDM_FDD2);          DeleteMenu(IDM_FDD2);
         DeleteMenu(IDM_FDD3);          DeleteMenu(IDM_FDD3);
   
         DrawMenuBar();  
 }  }
   
 static void HandleMenuChoice(long wParam) {  static void HandleMenuChoice(long wParam) {
Line 325  static void HandleMenuChoice(long wParam Line 306  static void HandleMenuChoice(long wParam
                         break;                          break;
   
                 default:                  default:
                         if (HiWord(wParam) == IDM_APPLE) {  
                                 GetMenuItemText(GetMenuHandle(IDM_APPLE),   
                                                                                         LoWord(wParam), applname);  
                         }  
                         break;                          break;
         }          }
         sysmng_update(update);          sysmng_update(update);
         HiliteMenu(0);          HiliteMenu(0);
 }  }
   #if 0
 static void HandleUpdateEvent(EventRecord *pevent) {  static void HandleUpdateEvent(EventRecord *pevent) {
   
         WindowPtr       hWnd;          WindowPtr       hWnd;
Line 349  static void HandleUpdateEvent(EventRecor Line 326  static void HandleUpdateEvent(EventRecor
         }          }
         EndUpdate(hWnd);          EndUpdate(hWnd);
 }  }
   #endif
 static void HandleMouseDown(EventRecord *pevent) {  static void HandleMouseDown(EventRecord *pevent) {
   
         WindowPtr       hWnd;          WindowPtr       hWnd;
Line 364  static void HandleMouseDown(EventRecord  Line 341  static void HandleMouseDown(EventRecord 
                                 soundmng_play();                                  soundmng_play();
                         }                          }
                         break;                          break;
   
                 case inContent:  
                         mousemng_buttonevent(MOUSEMNG_LEFTDOWN);  
                         break;  
         }          }
 }  }
   #if 0
 static void eventproc(EventRecord *event) {  static void eventproc(EventRecord *event) {
   
         int             keycode;          int             keycode;
Line 425  static void eventproc(EventRecord *event Line 398  static void eventproc(EventRecord *event
                         break;                          break;
         }          }
 }  }
   #endif
   
 #if 0  #if 0
 // ----  // ----

Removed from v.1.1  
changed lines
  Added in v.1.2


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