mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-09 07:18:45 -04:00
Merge branch 'use-bool'
This commit is contained in:
commit
e54e29fe4a
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user