Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on er…

…ror.
  • Loading branch information
philippwiesemann committed May 4, 2013
1 parent dee9d81 commit 7a010b894eb883474c95b1d067dd65c44faeaf73
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/SDL_render.c
@@ -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);

0 comments on commit 7a010b8

Please sign in to comment.