Cleaned up about dialog, fixed window centering

This commit is contained in:
Jon Thysell 2021-10-16 15:38:43 -07:00
parent 2ce4236ea7
commit cf5daf9dc7
5 changed files with 5 additions and 9 deletions

View File

@ -18,8 +18,6 @@ void GameWindow_Init(GameWindow *pGameWindow)
}
GameEngine_LoadLevel(&(pGameWindow->Engine), 0, false);
CenterWindow(pGameWindow->Window);
}
void GameWindow_Draw(GameWindow *pGameWindow)

View File

@ -3,11 +3,6 @@
#include "MacCommon.h"
void CenterWindow(WindowPtr window)
{
// TODO
}
void ShowError(Str255 message, Boolean isFatal)
{
ParamText(message, EmptyString, EmptyString, EmptyString);

View File

@ -12,8 +12,8 @@
#define ErrorAlertResID BaseResID
void CenterWindow(WindowPtr window);
Boolean IsCompactDisplay();
pascal OSErr SetDialogDefaultItem(DialogPtr theDialog, short newItem) = { 0x303C, 0x0304, 0xAA68 };
void ShowError(Str255 message, Boolean isFatal);
#endif

View File

@ -180,6 +180,9 @@ void MacLO_ShowAboutDialog()
dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront);
SetPort(dialog);
SetDialogDefaultItem(dialog, AboutDialogOKID);
ShowWindow(dialog);
ModalDialog(nil, &itemHit);

Binary file not shown.