Added Color support for Renderer

This commit is contained in:
Vraiment 2017-07-03 21:39:59 -07:00
parent ea43fbbbd7
commit f9fa7a9d03
2 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ Renderer& Renderer::SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) {
return *this;
}
Renderer& Renderer::SetDrawColor(const Color& color) {
Renderer& Renderer::SetDrawColor(const Color color) {
return SetDrawColor(color.r, color.g, color.b, color.a);
}

View File

@ -314,7 +314,7 @@ public:
/// \see http://wiki.libsdl.org/SDL_SetRenderDrawColor
///
////////////////////////////////////////////////////////////
Renderer& SetDrawColor(const Color& color);
Renderer& SetDrawColor(const Color color);
////////////////////////////////////////////////////////////
/// \brief Set current render target to default