From 2bf70cf1360a19dbe2bcc9aea275a098e593548b Mon Sep 17 00:00:00 2001 From: Jon Thysell Date: Tue, 23 Nov 2021 12:23:23 -0800 Subject: [PATCH] Fixed bug where opening the about menu breaks input/rendering --- src/MacLO.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MacLO.c b/src/MacLO.c index 8a89295..1efcdb9 100644 --- a/src/MacLO.c +++ b/src/MacLO.c @@ -198,9 +198,12 @@ void MacLO_HandleAppleMenuChoice(const int16_t item) void MacLO_ShowAboutDialog() { + GrafPtr oldPort; DialogPtr dialog; int32_t itemHit; + GetPort(&oldPort); + dialog = GetNewDialog(AboutDialogResID, nil, MoveToFront); SetPort(dialog); @@ -212,6 +215,8 @@ void MacLO_ShowAboutDialog() ModalDialog(nil, &itemHit); DisposDialog(dialog); + + SetPort(oldPort); } void MacLO_LaunchAppleMenuItem(const int16_t item)