1
0
Fork 0

Add: Set application name for SDL2 (#13061)

pull/13036/head
Charles Pigott 2024-11-06 19:51:03 +00:00 committed by GitHub
parent 465df3bab1
commit 884b93c4c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -556,6 +556,10 @@ std::optional<std::string_view> VideoDriver_SDL_Base::Start(const StringList &pa
}
#endif
#ifdef SDL_HINT_APP_NAME
SDL_SetHint(SDL_HINT_APP_NAME, "OpenTTD");
#endif
this->startup_display = FindStartupDisplay(GetDriverParamInt(param, "display", -1));
if (!CreateMainSurface(_cur_resolution.width, _cur_resolution.height, false)) {