mirror of
https://github.com/jonthysell/MacLO.git
synced 2024-06-09 12:29:36 +00:00
27 lines
498 B
C
27 lines
498 B
C
|
// Copyright (c) Jon Thysell <http://jonthysell.com>
|
||
|
// Licensed under the MIT License.
|
||
|
|
||
|
#include "MacCommon.h"
|
||
|
|
||
|
void CenterWindow(WindowPtr window)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
Boolean IsCompactDisplay()
|
||
|
{
|
||
|
return screenBits.bounds.right == 512
|
||
|
&& screenBits.bounds.bottom == 342;
|
||
|
}
|
||
|
|
||
|
void ShowError(Str255 message, Boolean isFatal)
|
||
|
{
|
||
|
ParamText(message, kEmptyString, kEmptyString, kEmptyString);
|
||
|
StopAlert(kErrorAlertID, kNilFilterProc);
|
||
|
|
||
|
if (isFatal)
|
||
|
{
|
||
|
ExitToShell();
|
||
|
}
|
||
|
}
|