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 7143 fa117b9cc89b
parent 7142 f4a670e51cde
child 7144 c700de9c8ed4
Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Sat May 04 09:11:18 2013 -0700
+++ b/src/render/SDL_render.c	Sat May 04 22:44:03 2013 +0200
@@ -1105,7 +1105,7 @@
 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);