Fix typo in QCocoaWindow comment
Change-Id: Idea292bc2927ff9a534f06b054c26b4ab3ef1bea Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 03bbad68ce45a8c7c199364157b91addfba8fb2e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c75c987a64
commit
02f5f21fbf
@ -1924,7 +1924,7 @@ qreal QCocoaWindow::devicePixelRatio() const
|
||||
{
|
||||
// The documented way to observe the relationship between device-independent
|
||||
// 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
|
||||
// or ignored by the OpenGL driver.
|
||||
NSSize backingSize = [m_view convertSizeToBacking:NSMakeSize(1.0, 1.0)];
|
||||
|
Loading…
x
Reference in New Issue
Block a user