mirror of https://github.com/jonthysell/MacLO.git
Fixed bug where opening the about menu breaks input/rendering
This commit is contained in:
parent
2d5d39874a
commit
2bf70cf136
|
@ -198,9 +198,12 @@ void MacLO_HandleAppleMenuChoice(const int16_t item)
|
||||||
|
|
||||||
void MacLO_ShowAboutDialog()
|
void MacLO_ShowAboutDialog()
|
||||||
{
|
{
|
||||||
|
GrafPtr oldPort;
|
||||||
DialogPtr dialog;
|
DialogPtr dialog;
|
||||||
int32_t itemHit;
|
int32_t itemHit;
|
||||||
|
|
||||||
|
GetPort(&oldPort);
|
||||||
|
|
||||||
dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront);
|
dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront);
|
||||||
|
|
||||||
SetPort(dialog);
|
SetPort(dialog);
|
||||||
|
@ -212,6 +215,8 @@ void MacLO_ShowAboutDialog()
|
||||||
ModalDialog(nil, &itemHit);
|
ModalDialog(nil, &itemHit);
|
||||||
|
|
||||||
DisposDialog(dialog);
|
DisposDialog(dialog);
|
||||||
|
|
||||||
|
SetPort(oldPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MacLO_LaunchAppleMenuItem(const int16_t item)
|
void MacLO_LaunchAppleMenuItem(const int16_t item)
|
||||||
|
|
Loading…
Reference in New Issue