X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fanchor_point.cpp;h=0c05191246a7f3ce967bf6ed5aee4c8e1fae326c;hb=dfd9453f9b5d71a70095b8abd881a93bc6f47a8f;hp=ad7db404b555ccf3053a8daadf8ad8263a0154f3;hpb=9ff3b19384bcecfeefe53b6ceabb0951b085ce80;p=supertux.git diff --git a/src/object/anchor_point.cpp b/src/object/anchor_point.cpp index ad7db404b..0c0519124 100644 --- a/src/object/anchor_point.cpp +++ b/src/object/anchor_point.cpp @@ -21,7 +21,7 @@ #include #include -#include "math/rect.hpp" +#include "math/rectf.hpp" #include "util/log.hpp" std::string anchor_point_to_string(AnchorPoint point) @@ -76,7 +76,7 @@ AnchorPoint string_to_anchor_point(const std::string& str) throw std::runtime_error(msg.str()); } -Vector get_anchor_pos(const Rect& rect, AnchorPoint point) +Vector get_anchor_pos(const Rectf& rect, AnchorPoint point) { Vector result; @@ -121,7 +121,7 @@ Vector get_anchor_pos(const Rect& rect, AnchorPoint point) return result; } -Vector get_anchor_pos(const Rect& destrect, float width, float height, +Vector get_anchor_pos(const Rectf& destrect, float width, float height, AnchorPoint point) { Vector result;