diff --git a/src/GameWindow.c b/src/GameWindow.c index acd0212..0355174 100644 --- a/src/GameWindow.c +++ b/src/GameWindow.c @@ -18,8 +18,6 @@ void GameWindow_Init(GameWindow *pGameWindow) } GameEngine_LoadLevel(&(pGameWindow->Engine), 0, false); - - CenterWindow(pGameWindow->Window); } void GameWindow_Draw(GameWindow *pGameWindow) diff --git a/src/MacCommon.c b/src/MacCommon.c index f1a9e82..d919102 100644 --- a/src/MacCommon.c +++ b/src/MacCommon.c @@ -3,11 +3,6 @@ #include "MacCommon.h" -void CenterWindow(WindowPtr window) -{ - // TODO -} - void ShowError(Str255 message, Boolean isFatal) { ParamText(message, EmptyString, EmptyString, EmptyString); diff --git a/src/MacCommon.h b/src/MacCommon.h index 3159031..05a2bc3 100644 --- a/src/MacCommon.h +++ b/src/MacCommon.h @@ -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 diff --git a/src/MacLO.c b/src/MacLO.c index bb2c920..583c44c 100644 --- a/src/MacLO.c +++ b/src/MacLO.c @@ -180,6 +180,9 @@ void MacLO_ShowAboutDialog() dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront); SetPort(dialog); + + SetDialogDefaultItem(dialog, AboutDialogOKID); + ShowWindow(dialog); ModalDialog(nil, &itemHit); diff --git a/src/MacLO.pi.rsrc.bin b/src/MacLO.pi.rsrc.bin index b7a39ac..114a30e 100644 Binary files a/src/MacLO.pi.rsrc.bin and b/src/MacLO.pi.rsrc.bin differ