Fix: [SDL2] Correct name of the video driver in debug log

SDL_GetVideoDriver(0) returns name of first video driver included in
the library, not the driver currently used.
SDL_GetCurrentVideoDriver() does what we want here.
This commit is contained in:
xdavidwu 2020-01-16 04:16:53 +08:00 committed by Charles Pigott
parent d7a928a08b
commit 8fe38afd2b
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ const char *VideoDriver_SDL::Start(const char * const *parm)
return SDL_GetError();
}
const char *dname = SDL_GetVideoDriver(0);
const char *dname = SDL_GetCurrentVideoDriver();
DEBUG(driver, 1, "SDL2: using driver '%s'", dname);
MarkWholeScreenDirty();