diff --git a/SDL2pp/Color.cc b/SDL2pp/Color.cc index 7c2f484..1807eff 100644 --- a/SDL2pp/Color.cc +++ b/SDL2pp/Color.cc @@ -22,6 +22,6 @@ #include std::ostream& operator<<(std::ostream& stream, const SDL2pp::Color& color) { - stream << "[r:" << static_cast(color.r) << ",g:" << static_cast(color.g) << ",b:" << static_cast(color.b) << ",a:" << static_cast(color.a) << "]"; - return stream; + stream << "[r:" << static_cast(color.r) << ",g:" << static_cast(color.g) << ",b:" << static_cast(color.b) << ",a:" << static_cast(color.a) << "]"; + return stream; } diff --git a/SDL2pp/Renderer.cc b/SDL2pp/Renderer.cc index 86b4df8..7efb4b9 100644 --- a/SDL2pp/Renderer.cc +++ b/SDL2pp/Renderer.cc @@ -198,7 +198,7 @@ Renderer& Renderer::SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) { } Renderer& Renderer::SetDrawColor(const Color& color) { - return SetDrawColor(color.r, color.g, color.b, color.a); + return SetDrawColor(color.r, color.g, color.b, color.a); } Renderer& Renderer::SetTarget() {