use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError

This commit is contained in:
pionere authored and Ryan C. Gordon committed 2022-01-28 20:40:19 -05:00
1 parent 4a17612bff
commit ebdd536676
36 files changed
+109 -123

No files matched your search

+1 -1
View File
@@ -1029,7 +1029,7 @@ SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
SDL_Cursor *cursor;
if (!surface) {
SDL_SetError("Passed NULL cursor surface");
SDL_InvalidParamError("surface");
return NULL;
}