How to fix top of screen clipping in windows

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Squatnet
:warning: Old Version Published before Godot 3 was released.

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?

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).

Zylann | 2017-06-27 15:26

https://youtu.be/gioOgW-WPRo
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.

Squatnet | 2017-06-27 15:52

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: Windows placement review (project manager, editor run, exported game) · Issue #9418 · godotengine/godot · GitHub

Zylann | 2017-06-27 18:49

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.

timoschwarzer | 2017-06-27 21:56