--- np2/macosx/dialog/aboutdlg.cpp 2003/11/11 16:33:51 1.1 +++ np2/macosx/dialog/aboutdlg.cpp 2004/01/11 16:58:48 1.4 @@ -12,6 +12,7 @@ #include "np2ver.h" #include "np2info.h" #include "aboutdlg.h" +#include static WindowRef aboutWin; static PicHandle pict; @@ -57,6 +58,7 @@ static pascal OSStatus cfWinproc(EventHa SizeWindow(aboutWin, 292, 230, true); } else { + ZeroMemory(infostr, sizeof(infostr)); np2info(infostr, np2infostr, sizeof(infostr)); SetControlData(more,kControlNoPart,kControlEditTextTextTag,sizeof(infostr), infostr); SetControl32BitValue(getControlRefByID('detl',0,aboutWin),3); @@ -80,11 +82,10 @@ static pascal OSStatus cfWinproc(EventHa { case kEventWindowShowing: image = getControlRefByID('logo', 0, aboutWin); - pict = getBMPfromResource("np2logo", &bounds, CFSTR("tiff")); + pict = getBMPfromResource("np2logo.tiff", &bounds); 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); - ZeroMemory(infostr, sizeof(infostr)); err=noErr; break;