File diff r24797:588223e116f1 → r24798:b9ee83bbe580
src/video/cocoa/cocoa_v.mm
Show inline comments
 
@@ -294,6 +294,12 @@ Dimension VideoDriver_Cocoa::GetScreenSi
 
	return { static_cast<uint>(NSWidth(frame)), static_cast<uint>(NSHeight(frame)) };
 
}
 

	
 
/** Get DPI scale of our window. */
 
float VideoDriver_Cocoa::GetDPIScale()
 
{
 
	return this->cocoaview != nil ? [ this->cocoaview getContentsScale ] : 1.0f;
 
}
 

	
 
/**
 
 * Are we in fullscreen mode?
 
 * @return whether fullscreen mode is currently used