diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index c9eea3730..9592c2fc3 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -672,7 +672,7 @@ int CGraphicsBackend_SDL_OpenGL::Init(const char *pName, int *Screen, int *pWidt if(Flags&IGraphicsBackend::INITFLAG_BORDERLESS) SdlFlags |= SDL_WINDOW_BORDERLESS; if(Flags&IGraphicsBackend::INITFLAG_FULLSCREEN) -#if defined(CONF_PLATFORM_MACOSX) // Todo: remove this when fixed in SDL +#if defined(CONF_PLATFORM_MACOSX) // Todo SDL: remove this when fixed (game freezes when losing focus in fullscreen) SdlFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP; // always use "fake" fullscreen *pWidth = *pDesktopWidth; *pHeight = *pDesktopHeight; @@ -790,7 +790,7 @@ void CGraphicsBackend_SDL_OpenGL::Maximize() bool CGraphicsBackend_SDL_OpenGL::Fullscreen(bool State) { -#if defined(CONF_PLATFORM_MACOSX) // Todo: remove this when fixed in SDL +#if defined(CONF_PLATFORM_MACOSX) // Todo SDL: remove this when fixed (game freezes when losing focus in fullscreen) return SDL_SetWindowFullscreen(m_pWindow, State ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) == 0; #else return SDL_SetWindowFullscreen(m_pWindow, State ? SDL_WINDOW_FULLSCREEN : 0) == 0; diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index a0eb46d99..9194e9cc6 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2213,7 +2213,7 @@ void CClient::ConchainServerBrowserUpdate(IConsole::IResult *pResult, void *pUse void CClient::SwitchWindowScreen(int Index) { - // Todo: remove this if fixed by SDL + // Todo SDL: remove this when fixed (changing screen when in fullscreen is bugged) if(g_Config.m_GfxFullscreen) { ToggleFullscreen(); diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index 6bf08acd4..6464f47ed 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -196,7 +196,7 @@ int CInput::Update() Action = IInput::FLAG_RELEASE; break; -#if defined(CONF_PLATFORM_MACOSX) // Todo: remove this when fixed in SDL +#if defined(CONF_PLATFORM_MACOSX) // Todo SDL: remove this when fixed (mouse state is faulty on start) case SDL_WINDOWEVENT: if(Event.window.event == SDL_WINDOWEVENT_MAXIMIZED) {