mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
Fix argument type; we use bool in C++
This commit is contained in:
parent
c823994fbc
commit
1e5c17c95a
@ -1,6 +1,6 @@
|
||||
/*
|
||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
||||
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@ -173,8 +173,8 @@ void Surface::SetColorMod(Uint8 r, Uint8 g, Uint8 b) {
|
||||
throw Exception("SDL_SetSurfaceColorMod failed");
|
||||
}
|
||||
|
||||
void Surface::SetRLE(int flag) {
|
||||
if (SDL_SetSurfaceRLE(surface_, flag) != 0)
|
||||
void Surface::SetRLE(bool flag) {
|
||||
if (SDL_SetSurfaceRLE(surface_, flag ? 1 : 0) != 0)
|
||||
throw Exception("SDL_SetSurfaceRLE failed");
|
||||
}
|
||||
|
||||
|
@ -469,14 +469,14 @@ public:
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the RLE acceleration hint for a surface
|
||||
///
|
||||
/// \param flag 0 to disable, non-zero to enable RLE acceleration
|
||||
/// \param flag False to disable, true to enable RLE acceleration
|
||||
///
|
||||
/// \throws SDL2pp::Exception
|
||||
///
|
||||
/// \see http://wiki.libsdl.org/SDL_SetSurfaceRLE
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
void SetRLE(int flag);
|
||||
void SetRLE(bool flag);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Perform a fast fill of a rectangle with a specific color
|
||||
|
Loading…
x
Reference in New Issue
Block a user