mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:49:14 +02:00
cocoa: change LOGPIXELSX and -Y to 96 PPI. Issue #31037
git-svn-id: trunk@53714 -
This commit is contained in:
parent
ad8da9ff6b
commit
5b8fe624b4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user