-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use black border color in borderless fullscreen mode on Windows #88734
base: master
Are you sure you want to change the base?
Use black border color in borderless fullscreen mode on Windows #88734
Conversation
Probably related to the early BG erase: godot/platform/windows/display_server_windows.cpp Lines 3504 to 3522 in 87d40ba
Maybe |
This looks better, but I feel like we might still want to add another option for FS (see #63500 (comment)), in a non compatibility breaking manner, maybe something like:
|
I agree it's good to have both modes available (as in, "best-effort borderless fullscreen" and "forced borderless fullscreen"). The proposed API should work well with existing projects as I'm not aware of any projects that enable both exclusive fullscreen and borderless at the same time currently. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also mention of clear color in the WINDOW_MODE_FULLSCREEN
documentation, which should be changed as well.
This makes the border much less noticeable, or even completely invisible on OLED displays.
9063dab
to
aa5f7b8
Compare
If this is intended for the editor and to allow popup windows and menus to show properly, may I suggest an alternative? Don't use WS_BORDER. Instead make the window 1px taller, then subtract 1px from the viewport (leaving the bottom row of pixel unused), which should prevent drivers from forcing exclusive fullscreen but still having the window content match the screen size. |
That's what #88852 do (and the extra pixel is made transparent as well). But it should be tested on different vendor GPUs to make sure it's not affecting performance. |
This makes the border much less noticeable, or even completely invisible on OLED displays.
The gray border is still visible for a split second after starting a project configured to run in fullscreen (while the splash screen is still displayed). Any ideas on how to make it black as soon as possible? cc @bruvzg
Preview
Example on the edges of an OLED display (LG C2 42"):
Before
After