remove unused GetMonitorAspectRatio

This commit is contained in:
Jason Felds
2009-04-08 19:39:48 +00:00
parent e1dee116c7
commit cd6571afc9
@@ -566,20 +566,6 @@ void LowLevelWindow_MacOSX::GetDisplayResolutions( DisplayResolutions &dr ) cons
// Do not release modes! We don't own them here.
}
float LowLevelWindow_MacOSX::GetMonitorAspectRatio() const
{
io_connect_t displayPort = CGDisplayIOServicePort( CGMainDisplayID() );
CFDictionaryRef dict = IODisplayCreateInfoDictionary( displayPort, 0 );
int width = GetIntValue( CFDictionaryGetValue(dict, CFSTR(kDisplayHorizontalImageSize)) );
int height = GetIntValue( CFDictionaryGetValue(dict, CFSTR(kDisplayVerticalImageSize)) );
CFRelease( dict );
if( width && height )
return float(width)/height;
return 4/3.f;
}
void LowLevelWindow_MacOSX::SwapBuffers()
{
CGLFlushDrawable( CGLGetCurrentContext() );