diff options
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r-- | src/utils/sdlhelper.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp index 064989e93..9d28f6c96 100644 --- a/src/utils/sdlhelper.cpp +++ b/src/utils/sdlhelper.cpp @@ -61,4 +61,16 @@ bool SDL::getAllVideoModes(StringVect &modeList) } } +void SDL::SetWindowTitle(SDL_Surface *const window A_UNUSED, + const char *const title) +{ + SDL_WM_SetCaption(title, nullptr); +} + +void SDL::SetWindowIcon(SDL_Surface *const window A_UNUSED, + SDL_Surface *const icon) +{ + SDL_WM_SetIcon(icon, nullptr); +} + #endif // USE_SDL2 |