Changed function to return -1 through SDL_Error() instead of plain -1.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 02 Nov 2013 11:46:43 +0100
changeset 7898 72af77fc6683
parent 7897 622d75108e60
child 7899 e94abe9c40ca
Changed function to return -1 through SDL_Error() instead of plain -1.
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Sat Nov 02 11:42:00 2013 +0100
+++ b/src/render/SDL_render.c	Sat Nov 02 11:46:43 2013 +0100
@@ -348,8 +348,7 @@
         return 0;
     } else {
         /* This should never happen */
-        SDL_SetError("Renderer doesn't support querying output size");
-        return -1;
+        return SDL_SetError("Renderer doesn't support querying output size");
     }
 }