From 6edba40152cbc74cf1083928e053980de5375267 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 17 Jan 2006 04:20:02 +0000 Subject: [PATCH] Do neither. Just copy the value. --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm index 70416dd7fa..0ac2aa83c0 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm @@ -126,6 +126,7 @@ CString LowLevelWindow_Cocoa::TryVideoMode( const VideoModeParams& p, bool& newD mCurrentParams.bAnisotropicFiltering = p.bAnisotropicFiltering; mCurrentParams.interlaced = p.interlaced; mCurrentParams.PAL = p.PAL; + mCurrentParams.fDisplayAspectRatio = p.fDisplayAspectRatio; #define X(x) p.x == mCurrentParams.x if( X(windowed) && X(bpp) && X(width) && X(height) && X(rate) && X(vsync) ) @@ -342,8 +343,6 @@ void LowLevelWindow_Cocoa::SetActualParamsFromMode( CFDictionaryRef mode ) } mCurrentParams.bpp = bpp; mCurrentParams.rate = rate; - // XXX should this be the actual DAR of the display or of the window, if windowed? - mCurrentParams.fDisplayAspectRatio = float(mCurrentParams.width)/mCurrentParams.height; } void LowLevelWindow_Cocoa::GetDisplayResolutions( DisplayResolutions &dr ) const