Add an error message to SDL_ListModes() if subsystem isn't initialized.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Apr 2019 14:15:37 -0400
changeset 11880c6b5470095
parent 117 9b264590d276
child 119 8d4f708adba1
Add an error message to SDL_ListModes() if subsystem isn't initialized.
src/SDL12_compat.c
     1.1 --- a/src/SDL12_compat.c	Tue Apr 02 14:15:06 2019 -0400
     1.2 +++ b/src/SDL12_compat.c	Tue Apr 02 14:15:37 2019 -0400
     1.3 @@ -2521,6 +2521,7 @@
     1.4      int i;
     1.5  
     1.6      if (!SDL20_WasInit(SDL_INIT_VIDEO)) {
     1.7 +        SDL20_SetError("Video subsystem not initialized");
     1.8          return NULL;
     1.9      }
    1.10