improve MultiversalInterfaces compatibility

This commit is contained in:
Wolfgang Thaller 2019-09-09 01:05:01 +02:00
parent fcf9548bff
commit 898ebff404
5 changed files with 17 additions and 17 deletions

View File

@ -71,7 +71,7 @@ AboutBox::AboutBox()
SizeWindow(window, portRect.right, viewRect.bottom + 10, false); SizeWindow(window, portRect.right, viewRect.bottom + 10, false);
} }
MacMoveWindow(window, MoveWindow(window,
screenBounds.right/2 - portRect.right/2, screenBounds.right/2 - portRect.right/2,
screenBounds.bottom/2 - portRect.bottom/2, screenBounds.bottom/2 - portRect.bottom/2,
false); false);

View File

@ -58,19 +58,19 @@ resource 'DITL' (128) {
#include "Processes.r" #include "Processes.r"
resource 'SIZE' (-1) { resource 'SIZE' (-1) {
dontSaveScreen, reserved,
acceptSuspendResumeEvents, acceptSuspendResumeEvents,
enableOptionSwitch, reserved,
canBackground, canBackground,
multiFinderAware, needsActivateOnFGSwitch,
backgroundAndForeground, backgroundAndForeground,
dontGetFrontClicks, dontGetFrontClicks,
ignoreChildDiedEvents, ignoreChildDiedEvents,
is32BitCompatible, is32BitCompatible,
isHighLevelEventAware, notHighLevelEventAware,
onlyLocalHLEvents, onlyLocalHLEvents,
notStationeryAware, notStationeryAware,
reserved, dontUseTextEditServices,
reserved, reserved,
reserved, reserved,
reserved, reserved,

View File

@ -94,7 +94,7 @@ void InitCustomWDEF()
void ShowAboutBox() void ShowAboutBox()
{ {
WindowRef w = GetNewWindow(128, NULL, (WindowPtr) - 1); WindowRef w = GetNewWindow(128, NULL, (WindowPtr) - 1);
MacMoveWindow(w, MoveWindow(w,
qd.screenBits.bounds.right/2 - w->portRect.right/2, qd.screenBits.bounds.right/2 - w->portRect.right/2,
qd.screenBits.bounds.bottom/2 - w->portRect.bottom/2, qd.screenBits.bounds.bottom/2 - w->portRect.bottom/2,
false); false);

View File

@ -106,11 +106,11 @@ data 'WDEF' (128) {
}; };
resource 'SIZE' (-1) { resource 'SIZE' (-1) {
dontSaveScreen, reserved,
acceptSuspendResumeEvents, acceptSuspendResumeEvents,
enableOptionSwitch, reserved,
canBackground, canBackground,
multiFinderAware, doesActivateOnFGSwitch,
backgroundAndForeground, backgroundAndForeground,
dontGetFrontClicks, dontGetFrontClicks,
ignoreChildDiedEvents, ignoreChildDiedEvents,
@ -118,7 +118,7 @@ resource 'SIZE' (-1) {
isHighLevelEventAware, isHighLevelEventAware,
onlyLocalHLEvents, onlyLocalHLEvents,
notStationeryAware, notStationeryAware,
reserved, dontUseTextEditServices,
reserved, reserved,
reserved, reserved,
reserved, reserved,

View File

@ -21,19 +21,19 @@ resource 'CODE' (1) {
#endif #endif
resource 'SIZE' (-1) { resource 'SIZE' (-1) {
dontSaveScreen, reserved,
ignoreSuspendResumeEvents, ignoreSuspendResumeEvents,
enableOptionSwitch, reserved,
cannotBackground, cannotBackground,
needsActivateOnFGSwitch, needsActivateOnFGSwitch,
backgroundAndForeground, backgroundAndForeground,
dontGetFrontClicks, dontGetFrontClicks,
ignoreChildDiedEvents, ignoreChildDiedEvents,
is32BitCompatible, is32BitCompatible,
reserved, notHighLevelEventAware,
reserved, onlyLocalHLEvents,
reserved, notStationeryAware,
reserved, dontUseTextEditServices,
reserved, reserved,
reserved, reserved,
reserved, reserved,