]> Shamusworld >> Repos - architektonas/blobdiff - src/rect.cpp
Fix for incorrect return values in TopLeft() and BottomRight().
[architektonas] / 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);
 }