diff --git a/gfx/sdl2_gfx.c b/gfx/sdl2_gfx.c index 215e86da47..9c81886468 100644 --- a/gfx/sdl2_gfx.c +++ b/gfx/sdl2_gfx.c @@ -381,19 +381,19 @@ static void *sdl2_gfx_init(const video_info_t *video, const input_driver_t **inp if (!vid) return NULL; -// RARCH_LOG("[SDL]: supported video drivers (change with $SDL_VIDEODRIVER):\n"); + RARCH_LOG("[SDL]: supported video drivers (change with $SDL_VIDEODRIVER):\n"); -// for (i = 0; i < SDL_GetNumVideoDrivers(); ++i) -// { -// RARCH_LOG("\t%s\n", SDL_GetVideoDriver(i)); -// } + for (i = 0; i < SDL_GetNumVideoDrivers(); ++i) + { + RARCH_LOG("\t%s\n", SDL_GetVideoDriver(i)); + } RARCH_LOG("[SDL]: Available displays:\n"); for(i = 0; i < SDL_GetNumVideoDisplays(); ++i) { SDL_DisplayMode mode; - if (SDL_GetCurrentDisplayMode(i, &mode) == 0) + if (SDL_GetCurrentDisplayMode(i, &mode) <= 0) RARCH_LOG("\tDisplay #%i mode: unknown.\n", i); else RARCH_LOG("\tDisplay #%i mode: %ix%i@%ihz.\n", i, mode.w, mode.h,