mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-28 03:31:09 +01:00
Changed function to return -1 through SDL_Error() instead of plain -1.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user