Merge branch 'use-bool'

This commit is contained in:
Dmitry Marakasov 2015-01-19 01:05:32 +03:00
commit e54e29fe4a
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ Surface& Surface::SetClipRect(const Optional<Rect>& rect) {
return *this; return *this;
} }
Surface& Surface::SetColorKey(int flag, Uint32 key) { Surface& Surface::SetColorKey(bool flag, Uint32 key) {
if (SDL_SetColorKey(surface_, flag, key) != 0) if (SDL_SetColorKey(surface_, flag, key) != 0)
throw Exception("SDL_SetColorKey failed"); throw Exception("SDL_SetColorKey failed");
return *this; return *this;

View File

@ -430,7 +430,7 @@ public:
/// \see http://wiki.libsdl.org/SDL_SetColorKey /// \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 /// \brief Set an additional alpha value used in blit operations