From 6106b89c9abbbba2e4b15cd4e7506e2a97a19d46 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Thu, 24 Jan 2019 18:15:47 +0100 Subject: [PATCH] LaunchAPPLServer: minor bugfixes --- LaunchAPPL/Server/AboutBox.cc | 3 +++ LaunchAPPL/Server/LaunchAPPLServer.cc | 2 +- LaunchAPPL/Server/StatusDisplay.cc | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/LaunchAPPL/Server/AboutBox.cc b/LaunchAPPL/Server/AboutBox.cc index 2278867668..04b58cb28f 100644 --- a/LaunchAPPL/Server/AboutBox.cc +++ b/LaunchAPPL/Server/AboutBox.cc @@ -89,6 +89,8 @@ AboutBox::~AboutBox() void AboutBox::Update() { + GrafPtr savePort; + GetPort(&savePort); SetPortWindowPort(window); BeginUpdate(window); @@ -107,4 +109,5 @@ void AboutBox::Update() TEUpdate(&portRect, textEdit); EndUpdate(window); + SetPort(savePort); } diff --git a/LaunchAPPL/Server/LaunchAPPLServer.cc b/LaunchAPPL/Server/LaunchAPPLServer.cc index 8ceb8d25da..4be90db334 100644 --- a/LaunchAPPL/Server/LaunchAPPLServer.cc +++ b/LaunchAPPL/Server/LaunchAPPLServer.cc @@ -596,7 +596,7 @@ void ConnectionChanged() default: ; } - + WritePrefs(); if(connection) { connection->setListener(&server); diff --git a/LaunchAPPL/Server/StatusDisplay.cc b/LaunchAPPL/Server/StatusDisplay.cc index c927421bf7..a66d8f30c8 100644 --- a/LaunchAPPL/Server/StatusDisplay.cc +++ b/LaunchAPPL/Server/StatusDisplay.cc @@ -169,6 +169,8 @@ void StatusDisplay::DrawValue(Stat stat, long val) void StatusDisplay::Update() { + GrafPtr savePort; + GetPort(&savePort); SetPortWindowPort(statusWindow); BeginUpdate(statusWindow); EraseRgn(background); @@ -257,6 +259,7 @@ void StatusDisplay::Update() #endif EndUpdate(statusWindow); + SetPort(savePort); } void StatusDisplay::Idle()