From 5b8fe624b43eb9aec26ce9a90d6345a0d4ffd148 Mon Sep 17 00:00:00 2001 From: ondrej Date: Sun, 18 Dec 2016 10:11:27 +0000 Subject: [PATCH] cocoa: change LOGPIXELSX and -Y to 96 PPI. Issue #31037 git-svn-id: trunk@53714 - --- lcl/interfaces/cocoa/cocoawinapi.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lcl/interfaces/cocoa/cocoawinapi.inc b/lcl/interfaces/cocoa/cocoawinapi.inc index 841784d708..b8ad77b445 100644 --- a/lcl/interfaces/cocoa/cocoawinapi.inc +++ b/lcl/interfaces/cocoa/cocoawinapi.inc @@ -1850,9 +1850,9 @@ begin // todo: change implementation for printers case Index of HORZSIZE: - Result := Round(NSScreen.mainScreen.frame.size.width / 72 * 25.4); + Result := Round(NSScreen.mainScreen.frame.size.width / 96 * 25.4); VERTSIZE: - Result := Round(NSScreen.mainScreen.frame.size.height / 72 * 25.4); + Result := Round(NSScreen.mainScreen.frame.size.height / 96 * 25.4); HORZRES: Result := Round(NSScreen.mainScreen.frame.size.width); BITSPIXEL: @@ -1862,9 +1862,9 @@ begin SIZEPALETTE: Result := 0; LOGPIXELSX: - Result := 72; + Result := 96; LOGPIXELSY: - Result := 72; + Result := 96; VERTRES: Result := Round(NSScreen.mainScreen.frame.size.height); NUMRESERVED: