FLTK logo

[fltk.general] Re: Strange Fl::screen_... results in 1.4

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Strange Fl::screen_... results in 1.4 Manolo Nov 29, 2022  
 

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.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/0f750e3b-1840-41da-92d5-d114fbd95500n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.