Skip to content
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

Fullscreen doesn't work well on Wayland #276

Open
xordspar0 opened this issue Nov 28, 2022 · 0 comments · May be fixed by #275
Open

Fullscreen doesn't work well on Wayland #276

xordspar0 opened this issue Nov 28, 2022 · 0 comments · May be fixed by #275

Comments

@xordspar0
Copy link
Contributor

I already have a fix for this in my branch (in fact it was the reason I started working on that branch), but I'm leaving this here in case anyone else sees this problem.

In Wayland, you can't set the mode of the monitor to whatever you want with SDL. If you choose a resolution different than your monitor, the game will just render draw a portion of your screen or overdraw off the edge of the screen. Additionally, if you have HighDPI scaling turned on, you have to choose a resolution smaller than your monitor's resolution, otherwise the game will be scaled up bigger than your monitor.

In the video below, my monitor's resolution is actually 3840x2160 but I had to choose 2560x1440.

Screencast.from.2022-11-28.13-39-34.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant