summaryrefslogtreecommitdiff
path: root/src/utils/sdlhelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 13:17:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitc6519e4cf281c2b9dade62c806647930868c4abc (patch)
tree771f9d1c5f3e118c5679c306c091945605c1b5b3 /src/utils/sdlhelper.cpp
parent37b4963329a6fb4dc39d8bbcb9fc8bd785e8a7e2 (diff)
downloadmv-c6519e4cf281c2b9dade62c806647930868c4abc.tar.gz
mv-c6519e4cf281c2b9dade62c806647930868c4abc.tar.bz2
mv-c6519e4cf281c2b9dade62c806647930868c4abc.tar.xz
mv-c6519e4cf281c2b9dade62c806647930868c4abc.zip
fix window title and icon in SDL2.
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r--src/utils/sdlhelper.cpp12
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