From 9e7ba6ff9d4f60b29f810b8a4f28d9b970846d82 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 10 Mar 2006 23:21:37 +0000 Subject: [PATCH] Fix Checkobug 1: If we cannot go full screen unless we have focus. --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm index e74699fad3..1c250571d2 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm @@ -214,7 +214,8 @@ RString LowLevelWindow_Cocoa::TryVideoMode( const VideoModeParams& p, bool& newD ASSERT( p.bpp == 16 || p.bpp == 32 ); - if( p.windowed ) + // If we don't have focus, we cannot be full screen. + if( p.windowed || !HOOKS->AppHasFocus() ) { if( bRebuildContext ) {