Skip to content

Port display.c to SDL3 #3428

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Port display.c to SDL3 #3428

wants to merge 11 commits into from

Conversation

ankith26
Copy link
Member

WIP to port display.c to SDL3

@ankith26 ankith26 requested a review from a team as a code owner May 12, 2025 16:56
@ankith26 ankith26 marked this pull request as draft May 12, 2025 16:59
@damusss damusss added display pygame.display sdl3 labels May 13, 2025
@ankith26 ankith26 force-pushed the ankith26-display-sdl3 branch from f16cc05 to 64ba90d Compare May 18, 2025 13:26
@ankith26 ankith26 force-pushed the ankith26-display-sdl3 branch 2 times, most recently from 9736da2 to 7006314 Compare May 18, 2025 18:01
@ankith26 ankith26 force-pushed the ankith26-display-sdl3 branch from 7006314 to 6b66f16 Compare May 18, 2025 18:12
@ankith26 ankith26 marked this pull request as ready for review May 18, 2025 18:15
@ankith26
Copy link
Member Author

This PR should be done from my side.

Given that this is a kinda big PR to review, I have already organized everything into commits that take up stuff one at a time and focus on it fully. So, if it helps reviewing I can split this up into multiple PRs each with subsets of commits from here.

@@ -331,6 +331,10 @@ pg_window_set_fullscreen(SDL_Window *window, int desktop)
goto end;
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this doing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically while working on fullscreen changes in display I saw that SDL_SetWindowFullscreenMode in SDL3 has effect only if the window is already in fullscreen mode according to the docs. So I added a call here as well that does that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display pygame.display sdl3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants