Diff for /np2/macosx/dialog/aboutdlg.cpp between versions 1.3 and 1.7

version 1.3, 2003/11/13 18:17:43 version 1.7, 2004/08/16 07:51:16
Line 12 Line 12
 #include        "np2ver.h"  #include        "np2ver.h"
 #include        "np2info.h"  #include        "np2info.h"
 #include        "aboutdlg.h"  #include        "aboutdlg.h"
   #include        <QuickTime/QuickTime.h>
   
 static  WindowRef       aboutWin;  static  WindowRef       aboutWin;
 static  PicHandle       pict;  static  PicHandle       pict;
Line 19  const EventTypeSpec list[]={ { kEventCla Line 20  const EventTypeSpec list[]={ { kEventCla
                                  { kEventClassWindow, kEventWindowShowing },                                   { kEventClassWindow, kEventWindowShowing },
                                 };                                  };
 static const char np2infostr[] =                                                                        \  static const char np2infostr[] =                                                                        \
                                                 "CPU: !CPU !CLOCK\r"                                            \                                                  "CPU: %CPU% %CLOCK%\r"                                          \
                                                 "MEM: !MEM1\r"                                                  \                                                  "MEM: %MEM1%\r"                                                 \
                                                 "GDC: !GDC\r"                                                           \                                                  "GDC: %GDC%\r"                                                          \
                                                 "TEXT: !TEXT\r"                                                 \                                                  "TEXT: %TEXT%\r"                                                        \
                                                 "GRPH: !GRPH\r"                                                 \                                                  "GRPH: %GRPH%\r"                                                        \
                                                 "SOUND: !EXSND\r"                                                       \                                                  "SOUND: %EXSND%\r"                                                      \
                                                 "\r"                                                                            \                                                  "\r"                                                                            \
                                                 "BIOS: !BIOS\r"                                                 \                                                  "BIOS: %BIOS%\r"                                                        \
                                                 "RHYTHM: !RHYTHM\r"                                                  "RHYTHM: %RHYTHM%\r"
                                                 ;                                                  ;
   
 static void closeAboutDialog(void) {  static void closeAboutDialog(void) {
Line 57  static pascal OSStatus cfWinproc(EventHa Line 58  static pascal OSStatus cfWinproc(EventHa
                     SizeWindow(aboutWin, 292, 230, true);                      SizeWindow(aboutWin, 292, 230, true);
                 }                  }
                 else {                  else {
                     ZeroMemory(infostr, sizeof(infostr));                      np2info(infostr, np2infostr, sizeof(infostr), NULL);
                     np2info(infostr, np2infostr, sizeof(infostr));  
                     SetControlData(more,kControlNoPart,kControlEditTextTextTag,sizeof(infostr), infostr);                      SetControlData(more,kControlNoPart,kControlEditTextTextTag,sizeof(infostr), infostr);
                     SetControl32BitValue(getControlRefByID('detl',0,aboutWin),3);                      SetControl32BitValue(getControlRefByID('detl',0,aboutWin),3);
                     SizeWindow(aboutWin, 292, 441, true);                      SizeWindow(aboutWin, 292, 441, true);
Line 80  static pascal OSStatus cfWinproc(EventHa Line 80  static pascal OSStatus cfWinproc(EventHa
         switch (GetEventKind(event))          switch (GetEventKind(event))
         {          {
             case kEventWindowShowing:              case kEventWindowShowing:
   #if defined(SUPPORT_PC9821)
                                   SetWindowTitleWithCFString(aboutWin, CFCopyLocalizedString(CFSTR("AboutTitle"), "about 21x"));
   #endif
                 image = getControlRefByID('logo', 0, aboutWin);                  image = getControlRefByID('logo', 0, aboutWin);
                 pict = getBMPfromResource("np2logo.tiff", &bounds);                  pict = getBMPfromResource("np2logo.tiff", &bounds);
                 SetControlData(image, kControlNoPart, kControlPictureHandleTag, sizeof(PicHandle), &pict);                  SetControlData(image, kControlNoPart, kControlPictureHandleTag, sizeof(PicHandle), &pict);
                 version = getControlRefByID('vers', 0, aboutWin);                                  version = getControlRefByID('vers', 0, aboutWin);
                 SetControlData(version, kControlNoPart, kControlStaticTextTextTag, sizeof(NP2VER_CORE), NP2VER_CORE);                  SetControlData(version, kControlNoPart, kControlStaticTextTextTag, sizeof(NP2VER_CORE), NP2VER_CORE);
                 err=noErr;                  err=noErr;
                 break;                  break;

Removed from v.1.3  
changed lines
  Added in v.1.7


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