From ae1eac94236a4789253a650a702606c5e9609ee2 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sun, 18 Jan 2015 19:56:55 +0300 Subject: [PATCH] Use bool type for boolean argument --- SDL2pp/Surface.cc | 2 +- SDL2pp/Surface.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL2pp/Surface.cc b/SDL2pp/Surface.cc index a6b991c..f9fca5f 100644 --- a/SDL2pp/Surface.cc +++ b/SDL2pp/Surface.cc @@ -154,7 +154,7 @@ Surface& Surface::SetClipRect(const Optional& rect) { return *this; } -Surface& Surface::SetColorKey(int flag, Uint32 key) { +Surface& Surface::SetColorKey(bool flag, Uint32 key) { if (SDL_SetColorKey(surface_, flag, key) != 0) throw Exception("SDL_SetColorKey failed"); return *this; diff --git a/SDL2pp/Surface.hh b/SDL2pp/Surface.hh index 1b5c4f1..bebf407 100644 --- a/SDL2pp/Surface.hh +++ b/SDL2pp/Surface.hh @@ -430,7 +430,7 @@ public: /// \see http://wiki.libsdl.org/SDL_SetColorKey /// //////////////////////////////////////////////////////////// - Surface& SetColorKey(int flag, Uint32 key); + Surface& SetColorKey(bool flag, Uint32 key); //////////////////////////////////////////////////////////// /// \brief Set an additional alpha value used in blit operations