-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FB: Refactor refresh rectangle bounding checks (#1718)
* BB: Implement getBoundedRect Replace our funky checkBounds use-cases where we actually want to fit a rectangle inside a bb, without actually relying on half the checkBounds feature, which are designed for ccordinates checking when blitting. Fold in support for alignment constraints, which allow us to make sure they don't do stupid things that would break OOB, as was experienced on Bellatrix3... * FB: Never call fb:refresh* methods without arguments (i.e., make the rect mandatory) I hadn't consciously dropped the nil guards, but turns out it makes sense, because UIManager will *always* set them. Thanks to @mergen3107 for catching that one early ;) * FB: Implement getScreenOrientation Which does what getScreenMode probably meant to be doing, i.e., returns the layout relative to the rotation, not how the buffer actually looks like ;). * SDL: Move the getBoundedRect call earlier, to make the log message accurate It's also not actually the physical rect, as the rectangle honors rotation, while the physical buffer layout is always unrotated.
- Loading branch information
Showing
8 changed files
with
143 additions
and
115 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.