0 votes

When running my game in windows the top part of the screen is cut off. I think this has something to do with the windows taskbar as if i move the taskbar to the side it fixes the issue. (it also resizes correctly if i then move it back to the default bottom position)

Running the same game under x11 in the same resolution works exactly as expected

Can not make images show on here which is stupidly annoying.
Imgur link for images due to not being able to post images here correctly
How can i fix this?

in Engine by (201 points)
edited by

I don't know if anything can be done on Windows, your game window is just too tall. You could think about making it adapt to different resolutions (especially if it target mobiles).

But yet if i simply move the taskbar to the side and back then the window resizes correctly.
It is like it doesnt register the taskbar until it is moved.

How is Godot supposed to know where the taskbar is? I don't know if it does. In Windows the screen doesn't starts below the taskbar.
A lot of software has the same problem, I have my taskbar at the top too, and I also made this request some time ago, which is now superseded by this thread: https://github.com/godotengine/godot/issues/9418

Zylann is right, your window is too tall. But the reason why it works on Linux/X11 is that Windows automatically scales the whole UI up when working with higher resolution screens. Games are usually excluded from this rule but according to an issue on GitHub this is not the case for Godot games and has to be fixed.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.