diff options
author | chai <chaifix@163.com> | 2021-10-20 13:50:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-20 13:50:50 +0800 |
commit | afdcbfa9c4259fb003fd072ae011836230e7e39b (patch) | |
tree | 28687805fa6cd08ea998adffeac7b241af42cfe8 /Editor/GUI/GUIWindow.cpp | |
parent | c795fb754bfd5c84c1bfd7dc793c6519f01109ea (diff) |
+containers
Diffstat (limited to 'Editor/GUI/GUIWindow.cpp')
-rw-r--r-- | Editor/GUI/GUIWindow.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Editor/GUI/GUIWindow.cpp b/Editor/GUI/GUIWindow.cpp index 34d7705..107a298 100644 --- a/Editor/GUI/GUIWindow.cpp +++ b/Editor/GUI/GUIWindow.cpp @@ -294,10 +294,10 @@ bool GUIWindow::SetRenderContext() if (m_RC && !g_IsGLInitialized) { log_info("Initialize OpenGL"); - wglMakeCurrent(m_DC, m_RC);
- if (!gladLoadGL()) {
- log_error("³õʼ»¯GL´íÎó");
- }
+ wglMakeCurrent(m_DC, m_RC); + if (!gladLoadGL()) { + log_error("³õʼ»¯GL´íÎó"); + } g_IsGLInitialized = true; } return true; @@ -343,17 +343,17 @@ void GUIWindow::Focus() log_info("Focus GUIWindow " + (long)this); if (m_Handle) { - if (::GetForegroundWindow() != m_ContainnerWindow->GetWindowHandle()) - ::SetForegroundWindow(m_ContainnerWindow->GetWindowHandle()); + if (::GetForegroundWindow() != m_ContainerWindow->GetWindowHandle()) + ::SetForegroundWindow(m_ContainerWindow->GetWindowHandle()); SetFocus(m_Handle); } } -void GUIWindow::SetContainnerWindow(ContainnerWindow* wnd) +void GUIWindow::SetContainerWindow(ContainerWindow* wnd) { Assert(wnd != NULL); - m_ContainnerWindow = wnd; + m_ContainerWindow = wnd; if (wnd->GetWindowHandle() != m_Handle) { |