Add stretch hint.
This commit is contained in:
@@ -420,13 +420,13 @@ void LowLevelWindow_Cocoa::GetDisplayResolutions( DisplayResolutions &dr ) const
|
|||||||
int width = GetIntValue( CFDictionaryGetValue(dict, kCGDisplayWidth) );
|
int width = GetIntValue( CFDictionaryGetValue(dict, kCGDisplayWidth) );
|
||||||
int height = GetIntValue( CFDictionaryGetValue(dict, kCGDisplayHeight) );
|
int height = GetIntValue( CFDictionaryGetValue(dict, kCGDisplayHeight) );
|
||||||
CFTypeRef safe = CFDictionaryGetValue( dict, kCGDisplayModeIsSafeForHardware );
|
CFTypeRef safe = CFDictionaryGetValue( dict, kCGDisplayModeIsSafeForHardware );
|
||||||
//bool stretched = GetBoolValue( CFDictionaryGetValue(dict, kCGDisplayModeIsStretched) );
|
bool stretched = GetBoolValue( CFDictionaryGetValue(dict, kCGDisplayModeIsStretched) );
|
||||||
|
|
||||||
if( !width || !height )
|
if( !width || !height )
|
||||||
continue;
|
continue;
|
||||||
if( safe && !GetBoolValue( safe ) )
|
if( safe && !GetBoolValue( safe ) )
|
||||||
continue;
|
continue;
|
||||||
DisplayResolution res = { width, height };
|
DisplayResolution res = { width, height, stretched };
|
||||||
dr.insert( res );
|
dr.insert( res );
|
||||||
}
|
}
|
||||||
// Do not release modes! We don't own it here.
|
// Do not release modes! We don't own it here.
|
||||||
|
|||||||
Reference in New Issue
Block a user