| version 1.1, 2003/11/11 16:33:51 | version 1.5, 2004/02/25 19:30:40 | 
| 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 { | 
| np2info(infostr, np2infostr, sizeof(infostr)); | np2info(infostr, np2infostr, sizeof(infostr), NULL); | 
 | 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 81  static pascal OSStatus cfWinproc(EventHa | 
 | { | { | 
 | case kEventWindowShowing: | case kEventWindowShowing: | 
 | image = getControlRefByID('logo', 0, aboutWin); | image = getControlRefByID('logo', 0, aboutWin); | 
| pict = getBMPfromResource("np2logo", &bounds, CFSTR("tiff")); | 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); | 
 | ZeroMemory(infostr, sizeof(infostr)); |  | 
 | err=noErr; | err=noErr; | 
 | break; | break; | 
 |  |  |