(SDL2) Show available video drivers and fix typo

This commit is contained in:
Higor Eurípedes 2014-08-19 15:17:56 -03:00
parent f854449d47
commit 705f14a8da

View File

@ -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,