Changed function to return -1 through SDL_Error() instead of plain -1.

main
Philipp Wiesemann 2013-11-02 11:46:43 +01:00
parent 0f8d9995fe
commit 4e270de15d
1 changed files with 1 additions and 2 deletions

View File

@ -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");
}
}