summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/whoisonline.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index 4b1c638ca..c1ea05881 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -45,6 +45,7 @@
#include "net/playerhandler.h"
#include "utils/gettext.h"
+#include "utils/sdlhelper.h"
#include <SDL.h>
#include <SDL_thread.h>
@@ -581,13 +582,8 @@ void WhoIsOnline::download()
SDL_WaitThread(mThread, nullptr);
mDownloadComplete = false;
-#ifdef USE_SDL2
- mThread = SDL_CreateThread(WhoIsOnline::downloadThread,
+ mThread = SDL::createThread(WhoIsOnline::downloadThread,
"whoisonline", this);
-#else
- mThread = SDL_CreateThread(WhoIsOnline::downloadThread, this);
-#endif
-
if (mThread == nullptr)
mDownloadStatus = UPDATE_ERROR;
}