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

Add flag allowing the Pac-Man GUI to be resized #104

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Conversation

ll-nick
Copy link
Collaborator

@ll-nick ll-nick commented Dec 9, 2024

This adds the SDL_WINDOW_RESIZABLE flag when calling SDL_CreateWindow while starting the Pac-Man demo GUI.
With this flag, the window can be resized or e.g. snapped to the screen border like any other window.

See here for documentation regarding the flag.

#patch

@ll-nick ll-nick requested a review from orzechow December 9, 2024 11:00
@ll-nick ll-nick self-assigned this Dec 9, 2024
@orzechow
Copy link
Member

Great!

I also added a keybinding, to toggle between fullscreen / windowed mode 😁

@ll-nick
Copy link
Collaborator Author

ll-nick commented Feb 11, 2025

Nice! 😁

@ll-nick ll-nick merged commit 41baa3a into main Feb 11, 2025
1 check passed
@ll-nick ll-nick deleted the make_window_resizable branch February 11, 2025 14:26
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.

2 participants