SFML community forums

Help => Window => Topic started by: SuperGabry64 on November 18, 2020, 08:29:42 pm

Title: Creating a fullscreen window doesn't hide the taskbar
Post by: SuperGabry64 on November 18, 2020, 08:29:42 pm
Creating a fullscreen window doesn't hide the taskbar, but prevents the window from overlapping on it.

The code is this:
(click to show/hide)

And the result is this:
(click to show/hide)

OS: Windows 10 64bit
GPU: GeForce GTX 1050
Title: Re: Creating a fullscreen window doesn't hide the taskbar
Post by: G. on November 19, 2020, 11:47:49 am
Is 320 200 a supported fullscreen resolution by your screen?
Can check if it's in getFullscreenModes or with isValid https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1VideoMode.php#ad5e04c044b0925523c75ecb173d2129a
Title: Re: Creating a fullscreen window doesn't hide the taskbar
Post by: SuperGabry64 on November 19, 2020, 12:26:59 pm
Yes, it's supported, and because if it's not supported it will tell me when I start the game that the video mode is not valid and it will switch to the desktop mode. However, I switched to a 640x400 mode, which is supported too
Title: Re: Creating a fullscreen window doesn't hide the taskbar
Post by: eXpl0it3r on November 20, 2020, 12:24:34 pm
So did you add the getFullscreenModes and validated it?

Just because something happens, doesn't mean it's a supported fullscreen mode.

In the end, there's little SFML can do in that regards. We just tell the OS that we want a fullscreen window and when the OS does something else, we don't really have the control over it.