forked from DragonMinded/libdragon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rdpq_tex_blit: fix various bugs with flipping and source rects
When specifying a source rectangle (subset of the whole surface), flipping was totally broken. The previous formulas did not account for this case correctly, in none of the various code paths. This was true for both flipping via the flip_x/flip_y variables, and flipping via negative scale. This patch reworks all the various coordinate formulas to correctly fix these cases.
- Loading branch information
Showing
1 changed file
with
39 additions
and
29 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