Changed function to return -1 through SDL_Error() instead of plain -1.
This commit is contained in:
parent
2d91a6d3e4
commit
2c84e8979a
1 changed files with 1 additions and 2 deletions
|
@ -348,8 +348,7 @@ SDL_GetRendererOutputSize(SDL_Renderer * renderer, int *w, int *h)
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
/* This should never happen */
|
/* This should never happen */
|
||||||
SDL_SetError("Renderer doesn't support querying output size");
|
return SDL_SetError("Renderer doesn't support querying output size");
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue