[go: nahoru, domu]

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

SDL1: Fix windowed video mode with sdl12-compat #7148

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

glebm
Copy link
Collaborator
@glebm glebm commented Jun 17, 2024

On Ubuntu 24.04, which uses sdl12-compat, when running in a window, SDL_GetVideoInfo returns the display size rather than the window size, resulting in incorrect scaling.

Using SDL_GetVideoSurface instead of SDL_GetVideoInfo fixes this.

On Ubuntu 24.04 when running in a window,
`SDL_GetVideoInfo` returns the display size rather than the window size,
resulting in incorrect scaling.

Using `SDL_GetVideoSurface` instead of `SDL_GetVideoInfo` fixes this.
@glebm glebm enabled auto-merge (rebase) June 17, 2024 07:40
@glebm glebm changed the title SDL1: Fix windowed video mode SDL1: Fix windowed video mode with sdl12-compat, Jun 17, 2024
@glebm glebm changed the title SDL1: Fix windowed video mode with sdl12-compat, SDL1: Fix windowed video mode with sdl12-compat Jun 17, 2024
@glebm glebm merged commit 706905f into diasurgical:master Jun 19, 2024
22 checks passed
@glebm glebm deleted the sdl1-wnd branch June 19, 2024 04:30
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 this pull request may close these issues.

None yet

2 participants