Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
This commit is contained in:
parent
28d45cd955
commit
e2fe26af28
1 changed files with 1 additions and 1 deletions
|
@ -1105,7 +1105,7 @@ SDL_RenderGetViewport(SDL_Renderer * renderer, SDL_Rect * rect)
|
|||
int
|
||||
SDL_RenderSetClipRect(SDL_Renderer * renderer, const SDL_Rect * rect)
|
||||
{
|
||||
CHECK_RENDERER_MAGIC(renderer, )
|
||||
CHECK_RENDERER_MAGIC(renderer, -1)
|
||||
|
||||
if (rect) {
|
||||
renderer->clip_rect.x = (int)SDL_floor(rect->x * renderer->scale.x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue