Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Creating a fullscreen window doesn't hide the taskbar  (Read 4620 times)

0 Members and 1 Guest are viewing this topic.

SuperGabry64

  • Newbie
  • *
  • Posts: 2
    • View Profile
Creating a fullscreen window doesn't hide the taskbar
« 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
« Last Edit: November 19, 2020, 08:23:32 am by SuperGabry64 »

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Creating a fullscreen window doesn't hide the taskbar
« Reply #1 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

SuperGabry64

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Creating a fullscreen window doesn't hide the taskbar
« Reply #2 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Creating a fullscreen window doesn't hide the taskbar
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/