diff --git a/test/TestUtilities/GraphicsUtil.hpp b/test/TestUtilities/GraphicsUtil.hpp index 44b3c3ba2..5c355b706 100644 --- a/test/TestUtilities/GraphicsUtil.hpp +++ b/test/TestUtilities/GraphicsUtil.hpp @@ -9,6 +9,8 @@ #include "WindowUtil.hpp" #include +#include +#include namespace sf { @@ -23,7 +25,10 @@ namespace sf template std::ostream& operator <<(std::ostream& os, const sf::Rect& rect) { + const auto flags = os.flags(); + os << std::fixed << std::setprecision(std::numeric_limits::max_digits10); os << "(left=" << rect.left << ", top=" << rect.top << ", width=" << rect.width << ", height=" << rect.height << ")"; + os.flags(flags); return os; } }