Do neither. Just copy the value.

This commit is contained in:
Steve Checkoway
2006-01-17 04:20:02 +00:00
parent 9404d25a0e
commit 6edba40152
@@ -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