From db3511150eb22aa79b81f71dd9aabbf762b87b6e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 2 Apr 2019 14:15:37 -0400 Subject: [PATCH] Add an error message to SDL_ListModes() if subsystem isn't initialized. --- src/SDL12_compat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c index ac2bec01a..e96c6344d 100644 --- a/src/SDL12_compat.c +++ b/src/SDL12_compat.c @@ -2521,6 +2521,7 @@ SDL_ListModes(const SDL12_PixelFormat *format12, Uint32 flags) int i; if (!SDL20_WasInit(SDL_INIT_VIDEO)) { + SDL20_SetError("Video subsystem not initialized"); return NULL; }