mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-07 14:25:17 -04:00
SDL_SetClipRect returns SDL_TRUE, not 0 on success
This commit is contained in:
parent
f20d52dab6
commit
167da88546
@ -149,7 +149,7 @@ void Surface::GetColorMod(Uint8& r, Uint8& g, Uint8& b) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Surface& Surface::SetClipRect(const Optional<Rect>& rect) {
|
Surface& Surface::SetClipRect(const Optional<Rect>& rect) {
|
||||||
if (SDL_SetClipRect(surface_, rect ? &*rect : nullptr) != 0)
|
if (SDL_SetClipRect(surface_, rect ? &*rect : nullptr) != SDL_TRUE)
|
||||||
throw Exception("SDL_SetClipRect");
|
throw Exception("SDL_SetClipRect");
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user