mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
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:
parent
d7a928a08b
commit
8fe38afd2b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user