Windows bug for small screens / fullscreen

Forum for discussion about the documentation project.
fxm
Posts: 8687
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: Windows bug for small screens

Postby fxm » Feb 06, 2019 19:01

Tourist Trap wrote:By the way, as we evocated issues about screen sizes, FBSHOOT , and my own test, tends to show that GET_DESKTOP_SIZE fails with 1920×1080 res on win10. It seems that Lachie has also encountered this behaviour. I have no time to go in deep for the instant, so take it as just a warning.

Can someone here add the precise links to these such behaviors observed?
Tourist Trap
Posts: 2614
Joined: Jun 02, 2015 16:24

Re: Windows bug for small screens

Postby Tourist Trap » Feb 06, 2019 19:40

fxm wrote:Can someone here add the precise links to these such behaviors observed?

Hi fxm,
here:
viewtopic.php?p=257835#p257835
fxm
Posts: 8687
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: Windows bug for small screens / fullscreen

Postby fxm » Feb 07, 2019 9:11

Yes me too (with Win 10), in full-screen mode (Direct X and GDI, fbc 32-bit and 64-bit), my computer's display (laptop):
- does not work properly with the highest resolution 1920x1080 (the desktop resolution): only a large upper left part of window is displayed, like a little zoomed from top-left point,
- but it works for the 1680x1050 resolution which is the one just before the last resolution (1920x1080), from the available resolution list displayed by ScreenList (in 32 bits mode color).
(tested with one simplest code and fbshoot)

ScreenList(32) wrote:Resolutions supported at 32 bits per pixel:
320x200
320x240
400x300
512x384
640x400
640x480
800x600
1024x768
1152x864
1280x600
1280x720
1280x768
1280x800
1280x960
1280x1024
1360x768
1366x768
1400x1050
1440x900
1600x900
1680x1050
1920x1080
MrSwiss
Posts: 2926
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Windows bug for small screens / fullscreen

Postby MrSwiss » Feb 07, 2019 12:36

Seems to me, to be a "high DPI" issue, rather than a bug.
Check Windows settings ... (if NOT set to: 100%)

Never had it in 1920 x 1080 (100%), but with 3200 x 1800 display.
(setting here, is 150%)
fxm
Posts: 8687
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: Windows bug for small screens / fullscreen

Postby fxm » Feb 07, 2019 13:10

Size of text, icons and apps:
125% (Recommended)
Resolution:
1920 x 1080 (Recommended)

I did not try 100% because 125% is the recommended value.
MrSwiss
Posts: 2926
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Windows bug for small screens / fullscreen

Postby MrSwiss » Feb 07, 2019 13:21

Try 100% (M$'s recommendations are quite useless sometimes) because:
you can, at any later stage change back, if you don't like what you see ...
fxm
Posts: 8687
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: Windows bug for small screens / fullscreen

Postby fxm » Feb 07, 2019 13:33

Yes, it properly works with 100%, but I returned to 125% for a more pleasant aspect if not.
MrSwiss
Posts: 2926
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Windows bug for small screens / fullscreen

Postby MrSwiss » Feb 07, 2019 13:37

Well then, that seems to confirm the issue being related to: high DPI settings ...
Landeel
Posts: 669
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Windows bug for small screens / fullscreen

Postby Landeel » Feb 15, 2019 10:42

Using a manifest is not for beginners.
SetProcessDPIAware() should work for Windows 8, and SetProcessDpiAwareness() should work for Windows 8.1 and 10.
Sample code here: https://www.freebasic.net/forum/viewtopic.php?f=6&t=27417#p258291
Note: "DPI" and "Dpi". This is case sensitive and took almost an hour of my life.
A screencontrol flag maybe?
And I think PROCESS_PER_MONITOR_DPI_AWARE should be default for fullscreen mode.
fxm
Posts: 8687
Joined: Apr 22, 2009 12:46
Location: Paris (suburbs), FRANCE

Re: Windows bug for small screens / fullscreen

Postby fxm » Feb 16, 2019 14:24

fxm wrote:In my recent version of Win 10 [version 10.0.17763.292], I no longer see the switch "Override high DPI scaling behavior" (or even an equivalent switch) in the compatibility properties of the .exe file.
Solved.
See at https://www.windowscentral.com/how-chan ... 018-update
(in my corresponding French version of the sub-menu, the text is truncated several times, and moreover it is less clear!)

Return to “Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest