Skip to content

Conversation

ccawley2011
Copy link
Contributor

This also ensures that the examples work on fullscreen-only platforms like the 3DS, where the window size will be equal to the display mode size rather than using the provided size.

Two examples haven't been adapted yet:

  • demo-infinite-monkeys (there is some code to handle adapting to different screen sizes, but it currently deletes the previous lines of text when a screen change occurs)
  • pen-drawing-lines (I don't have the hardware to test it with)

@slouken
Copy link
Collaborator

slouken commented Oct 7, 2025

I'm fine with this, @icculus, any concerns?

@slouken slouken requested a review from icculus October 7, 2025 18:03
@slouken slouken added this to the 3.4.0 milestone Oct 7, 2025
@icculus
Copy link
Collaborator

icculus commented Oct 7, 2025

So I avoided this originally because I didn't want to increase complexity in the examples, but it's a small change for a giant win, and honestly one I'd want copy/pasters to pull in. Let's merge this.

I'll look at the pen example later today.

@icculus icculus merged commit 0bbbf3d into libsdl-org:main Oct 7, 2025
43 checks passed
@icculus
Copy link
Collaborator

icculus commented Oct 7, 2025

But I'm assigning the infinite monkey fix to you, @slouken. :P

@ccawley2011 ccawley2011 deleted the resizable-examples branch October 7, 2025 20:27
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.

3 participants