Fix realDpi function for Mac

Authored by sbragin on Feb 18 2018, 6:23 PM.

Description

Fix realDpi function for Mac

Summary:
Removes old Utils::realDpi function for Mac. The old code employs functions
CGDisplayCurrentMode and CGDisplayIOServicePort, which are deprecated as
of versions 10.6 and 10.9, respectively. Now Mac uses the same code, as
Linux does, since it works out of the box.

This commit automatically fixes the long-standing bug of having an
implementation of realDpiX() and realDpiY(), which are not declared in
the utils.h file.

Reviewers: Okular, rjvbb

Reviewed By: rjvbb

Subscribers: rjvbb, cullmann, aacid, kde-mac, ltoscano, Okular

Tags: Okular

Differential Revision: https://phabricator.kde.org/D10415

Details

Committed
aacidFeb 18 2018, 6:24 PM
Reviewer
rjvbb
Differential Revision
D10415: Fix realDpi function for Mac
Parents
R223:739b591e25cd: Merge remote-tracking branch 'origin/Applications/17.12'
Branches
Unknown
Tags
Unknown