diff options
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) { |