diff options
Diffstat (limited to 'src/engine/client')
| -rw-r--r-- | src/engine/client/backend_sdl.cpp | 3 | ||||
| -rw-r--r-- | src/engine/client/graphics.cpp | 3 | ||||
| -rw-r--r-- | src/engine/client/graphics_threaded.cpp | 1 | ||||
| -rw-r--r-- | src/engine/client/graphics_threaded.h | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 4d77ff3e..e7975aca 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -2,6 +2,8 @@ #include "SDL.h" #include "SDL_opengl.h" +#include <base/tl/threading.h> + #include "graphics_threaded.h" #include "backend_sdl.h" @@ -403,6 +405,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int Width, int Height, } const SDL_VideoInfo *pInfo = SDL_GetVideoInfo(); + SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); // prevent stuck mouse cursor sdl-bug when loosing fullscreen focus in windows // set flags int SdlFlags = SDL_OPENGL; diff --git a/src/engine/client/graphics.cpp b/src/engine/client/graphics.cpp index bb52e1b8..2111703e 100644 --- a/src/engine/client/graphics.cpp +++ b/src/engine/client/graphics.cpp @@ -3,6 +3,7 @@ #include <base/detect.h> #include <base/math.h> +#include <base/tl/threading.h> #include "SDL.h" #include "SDL_opengl.h" @@ -764,7 +765,7 @@ int CGraphics_SDL::TryInit() m_ScreenHeight = g_Config.m_GfxScreenHeight; const SDL_VideoInfo *pInfo = SDL_GetVideoInfo(); - SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); + SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); // prevent stuck mouse cursor sdl-bug when loosing fullscreen focus in windows // set flags int Flags = SDL_OPENGL; diff --git a/src/engine/client/graphics_threaded.cpp b/src/engine/client/graphics_threaded.cpp index 286428d7..b19e8a83 100644 --- a/src/engine/client/graphics_threaded.cpp +++ b/src/engine/client/graphics_threaded.cpp @@ -3,6 +3,7 @@ #include <base/detect.h> #include <base/math.h> +#include <base/tl/threading.h> #include <base/system.h> #include <engine/external/pnglite/pnglite.h> diff --git a/src/engine/client/graphics_threaded.h b/src/engine/client/graphics_threaded.h index 3f3bec89..f90f818d 100644 --- a/src/engine/client/graphics_threaded.h +++ b/src/engine/client/graphics_threaded.h @@ -1,7 +1,5 @@ #pragma once -#include <base/tl/threading.h> - #include <engine/graphics.h> class CCommandBuffer |