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

Linux: Fix SDL bug that causes graphics corruption #55

Open
substring opened this issue Apr 11, 2020 · 1 comment
Open

Linux: Fix SDL bug that causes graphics corruption #55

substring opened this issue Apr 11, 2020 · 1 comment

Comments

@substring
Copy link
Collaborator

Fix SDL bug that causes graphics corruption when the new resolution is bigger than current desktop size. Probably linked to the initial size assigned at windows creation.

@D0023R
Copy link
Collaborator

D0023R commented May 4, 2020

The issue is related to the size of the screen buffer being less than the new resolution. SDL2 does not modify the screen size when a new mode is set.
In SR with -modesetting, the screen is resized and it fixes the issue.

Linked to SDL2, the origin of the screen is not updated after SDL2 video init is performed. It can be patched to calculate origin when usable boundaries function is called. Nevertheless, it would be better if the X notify event is used to address any screen modification performed outside of SDL2 during execution.

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

No branches or pull requests

2 participants