-
Notifications
You must be signed in to change notification settings - Fork 1
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
Full screen black bars after scaling #4
Comments
I can't replicate this on my latop, where all resolutions seem to work well with fullscreen in my case, but weird things like the ones you described are indeed happening when I use my external monitor: in that case, there's also cases where after going fullscreen I can't get back to windowed mode (screen remains black). I think this has to do with the supported resolutions on the monitors themselves, since this is the output of
Screen 0 (the laptop) has a ton of different resolutions, and they all match the resolutions the game tries to switch to (considering the 320x180 canvas multiplied by 1-6). The external monitor only supports a few instead, which explains the issues, and I probably never noticed the issue because the demo defaults at 4x (128x720) which is among the list of supported ones. If you change the
you'll tell the engine to use the SDL_WINDOW_FULLSCREEN_DESKTOP mode when going fullscreen, which doesn't actually change the resolution but adapts the content of the window to the current resolution instead. I just tried this with my external monitor and it works fine, but I remember not setting it by default because it had some issues of its own: I don't remember exactly which ones, but definitely if the aspect ratio of the game doesn't match the aspect ratio of the screen, you still get black bars; and besides, IIRC if the resolution of the game is larger than the screen, it's cropped too. I guess a proper management of fullscreen that's more aware of the environment will be needed in the future, even though I'd rather focus on the actual engine first, and fine tune this stuff later on. |
You're right, this is not at all urgent, I encourage you to put a "later" or "not yet important" label on it, or even close it if you see fit. I just wanted to note it, so that you're aware of it. |
Thanks for spotting it, since I wasn't indeed aware of this! In case you notice any other weirdness, please do send it this way 😁 |
Alright, will do :) |
When entering full screen mode after switching scales with
1
-6
, I found the following alignment issues:1
-2
: black bar on the bottom3
: black bar on the right6
: the resolution stays larger than the screen (gets cropped right and at the bottom) and does not re-scale the resolution as the smaller ones doIt's the same on my laptop and external monitors under Ubuntu 22.04.1.
The other scales work as expected.
The text was updated successfully, but these errors were encountered: