--- np2/macos9/dialog/d_about.cpp 2003/10/23 10:57:49 1.1 +++ np2/macos9/dialog/d_about.cpp 2003/11/09 23:42:06 1.3 @@ -1,25 +1,36 @@ #include "compiler.h" -#include "strres.h" #include "resource.h" #include "dialog.h" +#include "dialogs.h" +#include "np2ver.h" #include "pccore.h" +#if TARGET_API_MAC_CARBON +static const char subversion[] = " (Carbon)"; +#else +static const char subversion[] = " (Classic)"; +#endif + void AboutDialogProc(void) { DialogPtr hDlg; + char work[64]; + Str255 verstr; int done; short item; - Str255 ver; - Str255 dummy; hDlg = GetNewDialog(IDD_ABOUT, NULL, (WindowPtr)-1); if (!hDlg) { return; } - mkstr255(ver, np2version); - mkstr255(dummy, str_null); - ParamText(ver, dummy, dummy, dummy); + milstr_ncpy(work, np2version, sizeof(work)); +#if defined(NP2VER_MACOS9) + milstr_ncat(work, NP2VER_MACOS9, sizeof(work)); +#endif + milstr_ncat(work, subversion, sizeof(work)); + mkstr255(verstr, work); + SetDialogItemText(GetDlgItem(hDlg, IDD_VERSION), verstr); SetDialogDefaultItem(hDlg, IDOK); done = 0;