mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 12:20:38 +02:00
carbon: making carbon report 96ppi as a screen resolution for compatiblity with lcl 1.8 release
git-svn-id: trunk@57681 -
This commit is contained in:
parent
86a74fa388
commit
2f01f9b2d5
@ -542,8 +542,8 @@ begin
|
||||
// fill the screen info
|
||||
ScreenDC := GetDC(0);
|
||||
try
|
||||
ScreenInfo.PixelsPerInchX := GetDeviceCaps(ScreenDC, LOGPIXELSX);
|
||||
ScreenInfo.PixelsPerInchY := GetDeviceCaps(ScreenDC, LOGPIXELSY);
|
||||
ScreenInfo.PixelsPerInchX := 96; //GetDeviceCaps(ScreenDC, LOGPIXELSX);
|
||||
ScreenInfo.PixelsPerInchY := 96; //GetDeviceCaps(ScreenDC, LOGPIXELSY);
|
||||
ScreenInfo.ColorDepth := GetDeviceCaps(ScreenDC, BITSPIXEL);
|
||||
finally
|
||||
ReleaseDC(0, ScreenDC);
|
||||
|
Loading…
Reference in New Issue
Block a user