From 705f14a8daec3ca53712d733554a4f39b7da5753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Tue, 19 Aug 2014 15:17:56 -0300 Subject: [PATCH] (SDL2) Show available video drivers and fix typo --- gfx/sdl2_gfx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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,