Skip to content

Commit

Permalink
Changed function to return -1 through SDL_Error() instead of plain -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Nov 2, 2013
1 parent 0f8d999 commit 4e270de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/SDL_render.c
Expand Up @@ -348,8 +348,7 @@ SDL_GetRendererOutputSize(SDL_Renderer * renderer, int *w, int *h)
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");
}
}

Expand Down

0 comments on commit 4e270de

Please sign in to comment.