You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The black bars methods were removed by @reduz in #50040 as part of a general cleanup.
I'm not sure if an alternative is provided via a different API or if it should be reimplemented.
It would make sense as part of the Window class, setter/getters for black_bar_bottom, black_bar_top, black_bar_left, black_bar_right. Useful for drawing the game at a lower fixed resolution than the window size.
It would make sense as part of the Window class, setter/getters for black_bar_bottom, black_bar_top, black_bar_left, black_bar_right. Useful for drawing the game at a lower fixed resolution than the window size.
If you're looking for integer scaling, this is implemented in 4.2: #75784
Oh no that's not the problem, you can already set Window.content_scale_factor to integer values in 4.1. The point "black bars", or margins would be to have the aspect ratio of the viewport be different than the aspect ratio of the screen. (Since you can't control the size of the window, for example when in fullscreen.)
Godot version
4.0 beta 2
System information
Windows 10
Issue description
was RenderingServer.black_bars_set_margins removed intentionally?
Steps to reproduce
try running a project with code
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: