mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 11:25:42 +01:00
Add: Set application name for SDL2
This commit is contained in:
parent
4cd46e54aa
commit
089c7a21ca
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user