Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible desktop reporting problem
#2
(08-04-2023, 09:40 PM)doppler Wrote: Using _DesktopWidth and _DesktopHeight the reporting back numbers are off.  My display is 3840x2160.  But the reported numbers are 2560x1440.

Possible bug ?
You likely have 150% scale selected in your display properties. Windows is scaling the QB64 program according to that setting, and thus reports to the program that the screen is smaller in dimensions than it actually is so that it appears correct to the program.

It's not entirely wrong, just confusing. If you do `SCREEN _NEWIMAGE(2560, 1440, 32)` in your program, you'll find it actually takes up the entire dimensions of your display even though it's smaller. Windows will scale the program by 150%, turning your 2560x1440 program into the 3840x2160 you're expecting.

We've had lots of discussions about this behavior this but it's not currently possible to disable the scaling by Windows. In the future you'll likely be able to decide how to handle it and optionally turn it off.
Reply


Messages In This Thread
Possible desktop reporting problem - by doppler - 08-04-2023, 09:40 PM
RE: Possible desktop reporting problem - by DSMan195276 - 08-04-2023, 09:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Big problem for me. MystikShadows 11 2,050 01-16-2025, 05:11 AM
Last Post: JRace
  Problem with "MOD" Kernelpanic 5 1,062 01-06-2025, 02:37 AM
Last Post: Pete
  Problem with _Resize dano 7 1,303 10-22-2024, 07:22 PM
Last Post: dano
  Menu Run (No EXE) Problem GareBear 5 1,185 10-06-2023, 05:41 AM
Last Post: GareBear
  Is this a problem with _RESIZE or expected behavior? hanness 7 1,619 06-01-2023, 04:04 AM
Last Post: mnrvovrfc

Forum Jump:


Users browsing this thread: 1 Guest(s)