diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 13:17:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | c6519e4cf281c2b9dade62c806647930868c4abc (patch) | |
tree | 771f9d1c5f3e118c5679c306c091945605c1b5b3 /src/utils/sdl2helper.cpp | |
parent | 37b4963329a6fb4dc39d8bbcb9fc8bd785e8a7e2 (diff) | |
download | manaplus-c6519e4cf281c2b9dade62c806647930868c4abc.tar.gz manaplus-c6519e4cf281c2b9dade62c806647930868c4abc.tar.bz2 manaplus-c6519e4cf281c2b9dade62c806647930868c4abc.tar.xz manaplus-c6519e4cf281c2b9dade62c806647930868c4abc.zip |
fix window title and icon in SDL2.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r-- | src/utils/sdl2helper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp index 7cf624a2c..1ae8b087f 100644 --- a/src/utils/sdl2helper.cpp +++ b/src/utils/sdl2helper.cpp @@ -37,4 +37,14 @@ bool SDL::getAllVideoModes(StringVect &modeList) return true; } +void SDL::SetWindowTitle(SDL_Window *const window, const char *const title) +{ + SDL_SetWindowTitle(window, title); +} + +void SDL::SetWindowIcon(SDL_Window *const window, SDL_Surface *const icon) +{ + SDL_SetWindowIcon(window, icon); +} + #endif // USE_SDL2 |