Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 04 May 2013 22:44:03 +0200
changeset 7143fa117b9cc89b
parent 7142 f4a670e51cde
child 7144 c700de9c8ed4
Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Sat May 04 09:11:18 2013 -0700
     1.2 +++ b/src/render/SDL_render.c	Sat May 04 22:44:03 2013 +0200
     1.3 @@ -1105,7 +1105,7 @@
     1.4  int
     1.5  SDL_RenderSetClipRect(SDL_Renderer * renderer, const SDL_Rect * rect)
     1.6  {
     1.7 -    CHECK_RENDERER_MAGIC(renderer, )
     1.8 +    CHECK_RENDERER_MAGIC(renderer, -1)
     1.9  
    1.10      if (rect) {
    1.11          renderer->clip_rect.x = (int)SDL_floor(rect->x * renderer->scale.x);