OpenOrienteering / mapper

OpenOrienteering Mapper is a software for creating maps for the orienteering sport.
https://www.openorienteering.org/apps/mapper/
GNU General Public License v3.0
400 stars 106 forks source link

Huge cursor and right-click menu on HiDPI display #2139

Open yevhenmazur opened 1 year ago

yevhenmazur commented 1 year ago

Steps to reproduce

  1. Run Mapper on HiDPI display

Actual behavior

Embedded cursors and right-click context menu is ~2x larger then it should be.

Expected behavior

The size of the graphic elements (toolbar buttons, menus etc.) is consistent.

Workaround

Settings -> General -> Screen set not native resolution. In my case 144 ppi instead of 201.

Configuration

Mapper Version: master Operating System: Linux (X11 and Wayland)

lpechacek commented 1 year ago

Confirmed. This is a result of issue #592. There is scaling for implemented for displays with resolution higher (!) than 144 DPI. That is until 144 DPI the cursor and pie menu remain the same. Beyond 144 DPI they are scaled accordingly. The commit message does not give clues as to why there is the 144 DPI boundary with 1.5 magnification instead of smooth scaling starting at 96 DPI.

I'm not sure this behavior is a bug per se. On the other hand, the principle of least surprise has been breached here. The size difference between normal cursor and 1.5-times larger cursor is quite big.

Illustration of the cursor size difference jump