From 4e270de15d9c87ea6c2b410f76c039d53c018e18 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 2 Nov 2013 11:46:43 +0100 Subject: [PATCH] Changed function to return -1 through SDL_Error() instead of plain -1. --- src/render/SDL_render.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 5546d4a61..5bf4775b5 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -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"); } }