mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
(SDL2) Show available video drivers and fix typo
This commit is contained in:
parent
f854449d47
commit
705f14a8da
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user