Le mercredi 30 novembre 2022 à 01:38:08 UTC+1, Tigercat a écrit :
Getting closer. My testcase (and the original codebase) now report:
GCC Version: 11.3.0
FLTK Version: 1.4.0
Known monitors: 3
Monitor 0: 2560x1440 (2560,0) [Primary Screen]
Monitor 1: 2560x1440 (5120,0)
Monitor 2: 2560x1440 (0,0)
Workspace: 7680x1440
So it is picking up the three monitors correctly, and it's identifying the primary screen correctly (the one in the 'middle' of three monitors).
However, the resolution is still off. The monitors are 4K 3840x2160 monitors, but the current fltk (commit 1b0754ce4db888b01b291d64330751fe0a77eafc) has them as 2560x1440.
I would say we are good now because what you call resolution is in fact each screen size
in FLTK units. Now, these units change when the screen is scaled: the true screen size in pixels is divided
by the scale factor. You wrote you use 150% as scaling for your screens.
This explains that you get 2560x1440 where you'd expect 3840x2160
because 3840 / 1.5 = 2560.
Scaling is introduced in FLTK 1.4 and absent from FLTK 1.3.5 you're used with.
It allows you to keep your source code unchanged and have your GUI moved to
a high DPI display without becoming too small to be readable.