From 8a62df5ae77988a717379ace8787948d084c3cf2 Mon Sep 17 00:00:00 2001 From: nigel <> Date: Tue, 11 Mar 2003 11:31:56 +0000 Subject: [PATCH] 32bit defaults for windowed mode. --- BasiliskII/src/MacOSX/PrefsEditor.mm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BasiliskII/src/MacOSX/PrefsEditor.mm b/BasiliskII/src/MacOSX/PrefsEditor.mm index 4abc64eb..c153779c 100644 --- a/BasiliskII/src/MacOSX/PrefsEditor.mm +++ b/BasiliskII/src/MacOSX/PrefsEditor.mm @@ -326,7 +326,12 @@ } if ( display_type == DISPLAY_SCREEN ) // If changing from full screen + { newx = MIN_WIDTH, newy = MIN_HEIGHT; +#ifndef MAC_OS_X_VERSION_SUPPORTS_LOWER_DEPTHS + newbpp = 32; +#endif + } [width setIntValue: newx]; [height setIntValue: newy]; @@ -334,6 +339,15 @@ } else { +#ifndef MAC_OS_X_VERSION_SUPPORTS_LOWER_DEPTHS + // Check depth + + if ( display_type == DISPLAY_WINDOW && newbpp != 32 ) + { + WarningSheet(@"Sorry - In windowed mode, depth must be 32", panel); + [depth setIntValue: 32]; + } +#endif // Check size is within ranges of MIN_WIDTH ... MAX_WIDTH // and MIN_HEIGHT ... MAX_HEIGHT // ???