Add: Show current video driver info in Options window

This commit is contained in:
Niels Martin Hansen
2022-04-30 14:52:39 +02:00
parent be72f1e54b
commit 345dcd3c7b
13 changed files with 55 additions and 3 deletions

View File

@@ -540,6 +540,11 @@ const char *VideoDriver_SDL_Base::Start(const StringList &param)
const char *dname = SDL_GetCurrentVideoDriver();
Debug(driver, 1, "SDL2: using driver '{}'", dname);
this->driver_info = this->GetName();
this->driver_info += " (";
this->driver_info += dname;
this->driver_info += ")";
MarkWholeScreenDirty();
SDL_StopTextInput();