summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 14:37:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:14 +0300
commitec1beaa2ee07368368e9bd45fe400eedc57419eb (patch)
treec8f4792dc2316c7cc852bcf6738dff7557d9b872 /src/gui/whoisonline.cpp
parent8d4af08b165e10d7e82380074ce733ee9d068c6a (diff)
downloadmanaverse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.gz
manaverse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.bz2
manaverse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.xz
manaverse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.zip
first part of fixes for compilation with SDL2
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index 741e1e771..7036ac7d0 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -581,7 +581,12 @@ void WhoIsOnline::download()
SDL_WaitThread(mThread, nullptr);
mDownloadComplete = false;
+#ifdef USE_SDL2
+ mThread = SDL_CreateThread(WhoIsOnline::downloadThread,
+ "whoisonline", this);
+#else
mThread = SDL_CreateThread(WhoIsOnline::downloadThread, this);
+#endif
if (mThread == nullptr)
mDownloadStatus = UPDATE_ERROR;