Fix typo in QCocoaWindow comment
Pick-to: 6.6 6.5 Change-Id: Idea292bc2927ff9a534f06b054c26b4ab3ef1bea Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
a73f41d657
commit
03bbad68ce
@ -1924,7 +1924,7 @@ qreal QCocoaWindow::devicePixelRatio() const
|
|||||||
{
|
{
|
||||||
// The documented way to observe the relationship between device-independent
|
// The documented way to observe the relationship between device-independent
|
||||||
// and device pixels is to use one for the convertToBacking functions. Other
|
// and device pixels is to use one for the convertToBacking functions. Other
|
||||||
// methods such as [NSWindow backingScaleFacor] might not give the correct
|
// methods such as [NSWindow backingScaleFactor] might not give the correct
|
||||||
// result, for example if setWantsBestResolutionOpenGLSurface is not set or
|
// result, for example if setWantsBestResolutionOpenGLSurface is not set or
|
||||||
// or ignored by the OpenGL driver.
|
// or ignored by the OpenGL driver.
|
||||||
NSSize backingSize = [m_view convertSizeToBacking:NSMakeSize(1.0, 1.0)];
|
NSSize backingSize = [m_view convertSizeToBacking:NSMakeSize(1.0, 1.0)];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user