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 789872af77fc6683
parent 7897 622d75108e60
child 7899 e94abe9c40ca
Changed function to return -1 through SDL_Error() instead of plain -1.
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Sat Nov 02 11:42:00 2013 +0100
     1.2 +++ b/src/render/SDL_render.c	Sat Nov 02 11:46:43 2013 +0100
     1.3 @@ -348,8 +348,7 @@
     1.4          return 0;
     1.5      } else {
     1.6          /* This should never happen */
     1.7 -        SDL_SetError("Renderer doesn't support querying output size");
     1.8 -        return -1;
     1.9 +        return SDL_SetError("Renderer doesn't support querying output size");
    1.10      }
    1.11  }
    1.12