diff --git a/Runtime/GuiSys/CGuiFrame.cpp b/Runtime/GuiSys/CGuiFrame.cpp index 1b1dd1329..03dc93daa 100644 --- a/Runtime/GuiSys/CGuiFrame.cpp +++ b/Runtime/GuiSys/CGuiFrame.cpp @@ -195,7 +195,7 @@ void CGuiFrame::ProcessUserInput(const CFinalInput& input) const { } } -bool CGuiFrame::ProcessMouseInput(const CFinalInput& input, const CGuiWidgetDrawParms& parms) const { +bool CGuiFrame::ProcessMouseInput(const CFinalInput& input, const CGuiWidgetDrawParms& parms) { if (const auto& kbm = input.GetKBM()) { zeus::CVector2f point(kbm->m_mouseCoord.norm[0] * 2.f - 1.f, kbm->m_mouseCoord.norm[1] * 2.f - 1.f); diff --git a/Runtime/GuiSys/CGuiFrame.hpp b/Runtime/GuiSys/CGuiFrame.hpp index a5c49d2b1..059316738 100644 --- a/Runtime/GuiSys/CGuiFrame.hpp +++ b/Runtime/GuiSys/CGuiFrame.hpp @@ -47,10 +47,10 @@ private: float m_aspectConstraint = -1.f; float m_maxAspect = -1.f; - mutable bool m_inMouseDown = false; - mutable bool m_inCancel = false; - mutable CGuiWidget* m_mouseDownWidget = nullptr; - mutable CGuiWidget* m_lastMouseOverWidget = nullptr; + bool m_inMouseDown = false; + bool m_inCancel = false; + CGuiWidget* m_mouseDownWidget = nullptr; + CGuiWidget* m_lastMouseOverWidget = nullptr; std::function m_mouseOverChangeCb; std::function m_mouseDownCb; std::function m_mouseUpCb; @@ -102,7 +102,7 @@ public: void Initialize(); void LoadWidgetsInGame(CInputStream& in, CSimplePool* sp); void ProcessUserInput(const CFinalInput& input) const; - bool ProcessMouseInput(const CFinalInput& input, const CGuiWidgetDrawParms& parms) const; + bool ProcessMouseInput(const CFinalInput& input, const CGuiWidgetDrawParms& parms); void ResetMouseState(); CGuiWidgetIdDB& GetWidgetIdDB() { return x18_idDB; }