Repository navigation
Conversation
…er-of-two one) A movie picture decoded as a texture is rounded up to powers of two: a 640 x 448 picture in a 1024 x 512 texture. setBackdrop mapped the whole texture to its rectangle, so a port had to draw it larger than the picture and let the window cut the padding off. Where the window does not (a 4:3 picture kept 4:3 in a widescreen frame, or a letterbox), the padding showed: Amplitude's widescreen movies had a strip of stale pictures at the right and below. Two trailing parameters (u, v) give the part that is the picture; their defaults (1, 1) keep every port's call as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Renderer::setBackdropgets two trailing parameters,uandv: the part of the texture that is the picture, from its corner.u,vthe backdrop shows only the picture.Why
Without it, a port had to draw the whole texture larger than the picture and rely on the window cutting the padding off. Where the window doesn't, the padding shows. Amplitude's widescreen movies keep the 4:3 picture in the middle of a 16:9 frame, and a strip of stale pictures appeared at the right, and below in a 4:3 window's letterbox.
Testing
Amplitude: the logos and the intro in widescreen are centred with nothing at the sides. 4:3 is unchanged.
🤖 Generated with Claude Code