From 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 09:23:38 +0800 Subject: *misc --- Editor/GUI/ContainerWindow.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Editor/GUI/ContainerWindow.cpp') diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp index 57b1b48..99fa6cb 100644 --- a/Editor/GUI/ContainerWindow.cpp +++ b/Editor/GUI/ContainerWindow.cpp @@ -9,6 +9,7 @@ #include "Runtime/Math/Math.h" using namespace std; +using namespace LuaBind; static bool s_IsMainWindowMaximized; @@ -16,10 +17,10 @@ extern bool ProcessMainWindowMessages(HWND hWnd, UINT message, WPARAM wParam, LP LRESULT CALLBACK ContainerWindow::ContainerWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { -#if GAMELAB_DEBUG - static int _event_count = 0; - log_info_tag("WndProc", "ContrainerWindow Event %d", ++_event_count); -#endif +//#if GAMELAB_DEBUG +// static int _event_count = 0; +// log_info_tag("WndProc", "ContrainerWindow Event %d", ++_event_count); +//#endif ContainerWindow *self = (ContainerWindow*)GetWindowLongPtr(hWnd, GWLP_USERDATA); if (!self) @@ -45,13 +46,14 @@ LRESULT CALLBACK ContainerWindow::ContainerWndProc(HWND hWnd, UINT message, WPAR case WM_PAINT: { static PAINTSTRUCT ps; - log_info("WM_PAINT"); self->SetAsRenderContext(); + glEnable(GL_BLEND); float c = 26 / 255.f; glClearColor(c, c, c, 1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glFlush(); + BeginPaint(self->m_Window, &ps); EndPaint(self->m_Window, &ps); UpdateWindow(self->m_Window); -- cgit v1.1-26-g67d0