Re: [Lazarus] Mac Hi-DPI 2

2017-03-11 Thread Alexey via Lazarus
On 11.03.2017 23:37, Ondrej Pokorny via Lazarus wrote: We have 2 possible solutions: The solition 3) don't scale the app down, from 96 LCL to 72, to any lower value than 96. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.o

Re: [Lazarus] Mac Hi-DPI 2

2017-03-11 Thread Ondrej Pokorny via Lazarus
On 11.03.2017 17:58, zeljko wrote: Qt4 - MacOSX 10.8.6 32 bit (qt4 library uses carbon for it's widgets) Qt5 - MacOSX 10.11 64 bit (qt5 library uses cocoa for it's widgets). When Application.Scaled = False fonts of some controls are resized to smaller fonts (DesignTimePPI on both macs says 72 )

Re: [Lazarus] Mac Hi-DPI 2

2017-03-11 Thread zeljko via Lazarus
On 03/10/2017 12:54 PM, Ondrej Pokorny via Lazarus wrote: To me it looks like Carbon applications are scaled automatically by the OS. Something similar to what also Windows uses if you switch High-DPI awarness off. That means the regardless of your screen (retina, non-retina) the DPI is always

Re: [Lazarus] Mac Hi-DPI 2

2017-03-10 Thread Ondrej Pokorny via Lazarus
On 10.03.2017 6:38, Alexey via Lazarus wrote: seems I cannot see how scaling works on Mac. Reason: MacOS don't scale coords of controls, and don't have event "scale changed". It scales using Retina thing when i call video mode "nnn x nnn hi-dpi". It means: only DPI changes, coords dont change (

Re: [Lazarus] Mac Hi-DPI 2

2017-03-10 Thread Alexey via Lazarus
>To me it looks like Carbon applications are scaled automatically by the OS. Something similar to what also Windows yes, it is what I see too. Scaled automatically by OS >That means the regardless of your screen (retina, non-retina) the DPI is always 96. So there shouldn't be any LCL-scaling

Re: [Lazarus] Mac Hi-DPI 2

2017-03-09 Thread Alexey via Lazarus
This picture is OS opts: here you see, max NNxNN dont change, but only hi-dpi "added to video mode". Alex -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Mac Hi-DPI 2

2017-03-09 Thread Alexey via Lazarus
Ondrej, seems I cannot see how scaling works on Mac. Reason: MacOS don't scale coords of controls, and don't have event "scale changed". It scales using Retina thing when i call video mode "nnn x nnn hi-dpi". It means: only DPI changes, coords dont change (controls must draw in high dpi, but