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

version 1.2, 2003/11/08 17:54:27 version 1.3, 2004/03/22 17:56:35
Line 181  static pascal OSStatus PrefsTabEventHand Line 181  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 195  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.3


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