Skip to content

Commit

Permalink
Fix an orientation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
robotman2412 committed Dec 31, 2023
1 parent cae28fa commit 6d842c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion checklist.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

# Pre-release checklist
- [ ] All working features documented
- [x] Functions tested:
- [X] Functions tested:
- [x] MCR enabled/disabled consistency.
- [x] Unshaded rect, tri, line, circle, arc.
- [x] Shaded rect, tri, line, circle, arc.
- [x] Images
- [x] Text
- [X] Orientation functions
- [x] Buffer types tested:
- [x] PAX_BUF_1_PAL
- [x] PAX_BUF_2_PAL
Expand Down
4 changes: 2 additions & 2 deletions src/pax_orientation.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static inline pax_vec2f pax_orient_ccw2_flip_vec2f(pax_buf_t const *buf, pax_vec
};
}

// Transforms the co-ordinates as 2x counter-clockwise rotation and flip horizontally.
// Transforms the co-ordinates as 3x counter-clockwise rotation and flip horizontally.
static inline pax_vec2f pax_orient_ccw3_flip_vec2f(pax_buf_t const *buf, pax_vec2f vec) __attribute__((pure));
static inline pax_vec2f pax_orient_ccw3_flip_vec2f(pax_buf_t const *buf, pax_vec2f vec) {
return (pax_vec2f){
Expand Down Expand Up @@ -145,7 +145,7 @@ static inline pax_rectf pax_orient_flip_rectf(pax_buf_t const *buf, pax_rectf ve
static inline pax_rectf pax_orient_flip_rectf(pax_buf_t const *buf, pax_rectf vec) {
return (pax_rectf){
buf->width - vec.x,
buf->height - vec.y,
vec.y,
-vec.w,
vec.h,
};
Expand Down

0 comments on commit 6d842c0

Please sign in to comment.