Diff for /np2/macosx/dialog/screenopt.cpp between versions 1.2 and 1.4

version 1.2, 2003/11/08 17:54:27 version 1.4, 2004/05/23 04:07:57
Line 51  static void initScreenWindow(void) { Line 51  static void initScreenWindow(void) {
     setControlValue('sl/f', 2, np2cfg.wait[2]);      setControlValue('sl/f', 2, np2cfg.wait[2]);
     setControlValue('sl/f', 3, np2cfg.wait[4]);      setControlValue('sl/f', 3, np2cfg.wait[4]);
     setControlValue('sl/f', 4, np2cfg.realpal);      setControlValue('sl/f', 4, np2cfg.realpal);
           
   #if defined(SUPPORT_PC9821)
           DisableControl(getControlRefByID('Gral', 0, screenWin));
           DisableControl(getControlRefByID('16cl', 0, screenWin));
   #endif
   
 }  }
   
 static pascal OSStatus cfWinproc(EventHandlerCallRef myHandler, EventRef event, void* userData) {  static pascal OSStatus cfWinproc(EventHandlerCallRef myHandler, EventRef event, void* userData) {
Line 181  static pascal OSStatus PrefsTabEventHand Line 187  static pascal OSStatus PrefsTabEventHand
 static void makeNibWindow (IBNibRef nibRef) {  static void makeNibWindow (IBNibRef nibRef) {
     OSStatus    err;      OSStatus    err;
     short               i;      short               i;
     ControlRef  targetCon[5];  
           
     err = CreateWindowFromNib(nibRef, CFSTR("ScreenDialog"), &screenWin);      err = CreateWindowFromNib(nibRef, CFSTR("ScreenDialog"), &screenWin);
     if (err == noErr) {      if (err == noErr) {
Line 196  static void makeNibWindow (IBNibRef nibR Line 201  static void makeNibWindow (IBNibRef nibR
             { kEventClassControl, kEventControlValueFieldChanged }              { kEventClassControl, kEventControlValueFieldChanged }
         };          };
         for (i=0;i<5;i++) {          for (i=0;i<5;i++) {
             targetCon[i] = getControlRefByID('sl/f',i,screenWin);                          ControlRef  target;
             InstallControlEventHandler( targetCon[i],  sliderEventHandlerProc , GetEventTypeCount(sliderControlEvents), sliderControlEvents, (void *)targetCon[i], NULL );              target = getControlRefByID('sl/f', i, screenWin);
               InstallControlEventHandler(target, sliderEventHandlerProc, GetEventTypeCount(sliderControlEvents), sliderControlEvents, (void *)target, NULL );
         }          }
   
         EventHandlerRef ref;          EventHandlerRef ref;
         InstallWindowEventHandler (screenWin, NewEventHandlerUPP(cfWinproc), GetEventTypeCount(list), list, (void *)screenWin, &ref);          InstallWindowEventHandler (screenWin, NewEventHandlerUPP(cfWinproc), GetEventTypeCount(list), list, (void *)screenWin, &ref);
         ShowSheetWindow(screenWin, hWndMain);          
                   ShowSheetWindow(screenWin, hWndMain);
                   
         err=RunAppModalLoopForWindow(screenWin);          err=RunAppModalLoopForWindow(screenWin);
     }      }

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


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