Skip to content
Permalink
Browse files

Add an error message to SDL_ListModes() if subsystem isn't initialized.

  • Loading branch information
icculus committed Apr 2, 2019
1 parent ac8354e commit db3511150eb22aa79b81f71dd9aabbf762b87b6e
Showing with 1 addition and 0 deletions.
  1. +1 −0 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;
}

0 comments on commit db35111

Please sign in to comment.