Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-08

High DPI ?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hello,

I'm running lazarus on a high-dpi laptop. The laptop has a dual-boot Linux mint and Mac OS. I run Lazarus on both OS-es but I seriously doubt it has enabled HighDPI, because the icon buttons are still very small.

How can I check that the IDE has actually enabled/activated HDPI and uses big icons/button images?

Michael.

Reply by email

Ondrej Pokorny
to Michael Van Canneyt
Michael Van Canneyt wrote
How can I check that the IDE has actually enabled/activated HDPI and uses big icons/button images?
Check for Application.Scaled := True in lazarus.pp. This enables Hi-DPI
features.

---

Another problem could be that the widgetset sends wrong PPI value to LCL. So check for Screen.PixelsPerInch (96 = 100%). If you build Lazarus with Gtk2, you could be affected by this WS-bug:
https://mantis.freepascal.org/view.php?id=31199

Ondrej

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote 6 lines
On 05.08.2017 14:16, Michael Van Canneyt via Lazarus wrote: > How can I check that the IDE has actually enabled/activated HDPI and uses > big icons/button images? Check for Application.Scaled := True in lazarus.pp. This enables Hi-DPI features.

I know that, I meant more 'how to verify the effects of this setting' :)

Maybe I should have been more clear.

Another problem could be that the widgetset sends wrong PPI value to LCL. So check for Screen.PixelsPerInch (96 = 100%). If you build Lazarus with Gtk2, you could be affected by this WS-bug: https://mantis.freepascal.org/view.php?id=31199

Thank you for the tip !

Since I have the same setup as the reporter I have applied the patch provided in this bugreport, and then HighDPI works on Linux. The buttons and images have a reasonable size, font looks normal...

So, from my point of view, that patch can be applied ASAP :)

Michael.

Reply by email

Ondrej Pokorny
to Michael Van Canneyt
Michael Van Canneyt wrote 5 lines
Since I have the same setup as the reporter I have applied the patch provided in this bugreport, and then HighDPI works on Linux. The buttons and images have a reasonable size, font looks normal... So, from my point of view, that patch can be applied ASAP :)

Thanks for the feedback - sometimes it's quite hard to get feedback from the reporters. I applied the patch.

Ondrej

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote 9 lines
On 05.08.2017 15:39, Michael Van Canneyt via Lazarus wrote: > Since I have the same setup as the reporter I have applied the patch > provided in this bugreport, and then HighDPI works on Linux. > The buttons and images have a reasonable size, font looks normal... > > So, from my point of view, that patch can be applied ASAP :) Thanks for the feedback - sometimes it's quite hard to get feedback from the reporters. I applied the patch.

Thank you, it's a huge improvement !

Michael.

Reply by email