From 74f729109e24a507507b41f1e863c9a4a4a0e9a2 Mon Sep 17 00:00:00 2001 From: Andrii Date: Mon, 31 Aug 2020 17:16:40 +0300 Subject: [PATCH 1/2] Set blendmode on background render --- src/game/client/components/menus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 1386a4633..136ceea37 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -2102,6 +2102,8 @@ void CMenus::OnRender() void CMenus::RenderBackground() { + Graphics()->BlendNormal(); + float sw = 300*Graphics()->ScreenAspect(); float sh = 300; Graphics()->MapScreen(0, 0, sw, sh); @@ -2178,7 +2180,6 @@ void CMenus::RenderUpdating(const char *pCaption, int current, int total) CUIRect Screen = *UI()->Screen(); Graphics()->MapScreen(Screen.x, Screen.y, Screen.w, Screen.h); - Graphics()->BlendNormal(); RenderBackground(); float w = 700; From 2969d939412112b8f76a47d4fda336ab7f184597 Mon Sep 17 00:00:00 2001 From: Andrii Date: Mon, 31 Aug 2020 22:40:57 +0300 Subject: [PATCH 2/2] disable mouse buttons if console not closed --- src/game/client/components/console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index ee0f6806d..5da3c39b7 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -758,8 +758,8 @@ void CGameConsole::Toggle(int Type) if (m_ConsoleState == CONSOLE_CLOSED || m_ConsoleState == CONSOLE_CLOSING) { - /*Input()->MouseModeAbsolute(); - m_pClient->m_pMenus->UseMouseButtons(false);*/ + /*Input()->MouseModeAbsolute();*/ + m_pClient->m_pMenus->UseMouseButtons(false); m_ConsoleState = CONSOLE_OPENING; /*// reset controls m_pClient->m_pControls->OnReset();*/