mirror of
https://github.com/jonthysell/MacLO.git
synced 2025-01-20 15:29:45 +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);
|
GameEngine_LoadLevel(&(pGameWindow->Engine), 0, false);
|
||||||
|
|
||||||
CenterWindow(pGameWindow->Window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameWindow_Draw(GameWindow *pGameWindow)
|
void GameWindow_Draw(GameWindow *pGameWindow)
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
|
|
||||||
#include "MacCommon.h"
|
#include "MacCommon.h"
|
||||||
|
|
||||||
void CenterWindow(WindowPtr window)
|
|
||||||
{
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
void ShowError(Str255 message, Boolean isFatal)
|
void ShowError(Str255 message, Boolean isFatal)
|
||||||
{
|
{
|
||||||
ParamText(message, EmptyString, EmptyString, EmptyString);
|
ParamText(message, EmptyString, EmptyString, EmptyString);
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
#define ErrorAlertResID BaseResID
|
#define ErrorAlertResID BaseResID
|
||||||
|
|
||||||
void CenterWindow(WindowPtr window);
|
pascal OSErr SetDialogDefaultItem(DialogPtr theDialog, short newItem) = { 0x303C, 0x0304, 0xAA68 };
|
||||||
Boolean IsCompactDisplay();
|
|
||||||
void ShowError(Str255 message, Boolean isFatal);
|
void ShowError(Str255 message, Boolean isFatal);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -180,6 +180,9 @@ void MacLO_ShowAboutDialog()
|
|||||||
dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront);
|
dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront);
|
||||||
|
|
||||||
SetPort(dialog);
|
SetPort(dialog);
|
||||||
|
|
||||||
|
SetDialogDefaultItem(dialog, AboutDialogOKID);
|
||||||
|
|
||||||
ShowWindow(dialog);
|
ShowWindow(dialog);
|
||||||
|
|
||||||
ModalDialog(nil, &itemHit);
|
ModalDialog(nil, &itemHit);
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user