summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2012-11-02 09:03:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-02 15:58:25 +0100
commitb2189acfc142397e8f3f547b0affdfc0b233fbb2 (patch)
treee370a9e3dcb853cd9d4038d574b56946bf52cde8 /tests/auto
parent324a41db458f2f662398a5895c28b1a18ef52b2d (diff)
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>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions