Skip to content

Commit

Permalink
Add: Set application name for SDL2 (#13061)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAro authored Nov 6, 2024
1 parent 465df3b commit 884b93c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/sdl2_v.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 884b93c

Please sign in to comment.