Windows bug for small screens / fullscreen

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

Re: Windows bug for small screens

Post by fxm »

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: 2958
Joined: Jun 02, 2015 16:24

Re: Windows bug for small screens

Post by Tourist Trap »

fxm wrote: Can someone here add the precise links to these such behaviors observed?
Hi fxm,
here:
viewtopic.php?p=257835#p257835
fxm
Moderator
Posts: 12131
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Windows bug for small screens / fullscreen

Post by fxm »

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: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Windows bug for small screens / fullscreen

Post by MrSwiss »

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
Moderator
Posts: 12131
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Windows bug for small screens / fullscreen

Post by fxm »

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: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Windows bug for small screens / fullscreen

Post by MrSwiss »

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
Moderator
Posts: 12131
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Windows bug for small screens / fullscreen

Post by fxm »

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

Re: Windows bug for small screens / fullscreen

Post by MrSwiss »

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

Re: Windows bug for small screens / fullscreen

Post by Landeel »

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: 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
Moderator
Posts: 12131
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Windows bug for small screens / fullscreen

Post by fxm »

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!)
Post Reply