Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on er…
Browse files Browse the repository at this point in the history
…ror.
  • Loading branch information
philippwiesemann committed May 4, 2013
1 parent dee9d81 commit 7a010b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/SDL_render.c
Expand Up @@ -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);
Expand Down

0 comments on commit 7a010b8

Please sign in to comment.