]> Shamusworld >> Repos - architektonas/commitdiff
Fix for incorrect return values in TopLeft() and BottomRight().
authorShamus Hammons <jlhamm@acm.org>
Thu, 23 Apr 2020 17:20:42 +0000 (12:20 -0500)
committerShamus Hammons <jlhamm@acm.org>
Thu, 23 Apr 2020 17:20:42 +0000 (12:20 -0500)
src/rect.cpp

index 8c9c74ed70c949ef22a49553afe150f9de021f77..693cf31582e34b3533bb1df7bbd73a9a60b71fa6 100644 (file)
@@ -119,12 +119,12 @@ bool Rect::Contains(Point p)
 
 Point Rect::TopLeft(void)
 {
-       return Point(t, l);
+       return Point(l, t);
 }
 
 
 Point Rect::BottomRight(void)
 {
-       return Point(b, r);
+       return Point(r, b);
 }