mirror of
https://github.com/jonthysell/MacLO.git
synced 2025-01-03 10:29:22 +00:00
Cleaned up about dialog, fixed window centering
This commit is contained in:
parent
2ce4236ea7
commit
cf5daf9dc7
@ -18,8 +18,6 @@ void GameWindow_Init(GameWindow *pGameWindow)
|
||||
}
|
||||
|
||||
GameEngine_LoadLevel(&(pGameWindow->Engine), 0, false);
|
||||
|
||||
CenterWindow(pGameWindow->Window);
|
||||
}
|
||||
|
||||
void GameWindow_Draw(GameWindow *pGameWindow)
|
||||
|
@ -3,11 +3,6 @@
|
||||
|
||||
#include "MacCommon.h"
|
||||
|
||||
void CenterWindow(WindowPtr window)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void ShowError(Str255 message, Boolean isFatal)
|
||||
{
|
||||
ParamText(message, EmptyString, EmptyString, EmptyString);
|
||||
|
@ -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
|
||||
|
@ -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.
Loading…
Reference in New Issue
Block a user