X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Finit.cpp;h=b461e7bfad1de9906fbd893b3839544b5bd723e3;hb=87d49881e02bfd0ada60d183c71737205e688e9d;hp=3c333cc10d8d3ed632c712b57ad9fd174e55e5fb;hpb=150bfd36d71cafa0213f083a333fd686d844966f;p=quix0rs-blobwars.git diff --git a/src/init.cpp b/src/init.cpp index 3c333cc..b461e7b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -209,6 +209,8 @@ void saveConfig() // int initMedalService(void *data) { + (void)data; + SDL_mutexP(medalServer.lock); char connectMessage[1024]; @@ -293,7 +295,7 @@ void initSystem() } // Increase the size of the window if we have large desktop resolutions - SDL_DisplayMode displayMode{0}; + SDL_DisplayMode displayMode = {}; SDL_GetDesktopDisplayMode(0, &displayMode); int w = graphics.screen->w; int h = graphics.screen->h; @@ -367,7 +369,6 @@ void initSystem() } SDL_ShowCursor(SDL_DISABLE); - SDL_EventState(SDL_MOUSEMOTION, SDL_DISABLE); graphics.registerEngine(&engine); graphics.mapColors();