Cocoa: Fix fonts on retina displays.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Fri, 2 Nov 2012 08:03:21 +0000 (09:03 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 14:58:25 +0000 (15:58 +0100)
commitb2189acfc142397e8f3f547b0affdfc0b233fbb2
treee370a9e3dcb853cd9d4038d574b56946bf52cde8
parent324a41db458f2f662398a5895c28b1a18ef52b2d
Cocoa: Fix fonts on retina displays.

Hardcode logical dpi to 72 again. NSDeviceResolution
gives us the physical dpi (144) and results in double-
sized fonts in Qt. QPlatformScreen does not currently
have a physicalDpi virtual, perhaps this can be added
later on.

Unfortunately the usefulness of a per-screen correct
DPI metric seems questionable to me:
1) The value returned by the system is not correct,
   pixels per inch on the rMBP is around 220.
2) Qt always uses the dpi for the main screen, via
   qt_defaltDpiX/Y.

Change-Id: Ia35804be62ee7f1c623bad854f65d744dc9075d4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
src/plugins/platforms/cocoa/qcocoaintegration.mm