summaryrefslogtreecommitdiff
path: root/Editor/GUI/ContainerWindow.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-08 09:23:38 +0800
committerchai <chaifix@163.com>2021-11-08 09:23:38 +0800
commit138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 (patch)
tree31ca6e8ea6d2e960e8d35f801bd92555942822e2 /Editor/GUI/ContainerWindow.cpp
parentefce5b6bd5c9d4f8214a71e0f7a7c35751710a4c (diff)
*misc
Diffstat (limited to 'Editor/GUI/ContainerWindow.cpp')
-rw-r--r--Editor/GUI/ContainerWindow.cpp12
1 files changed, 7 insertions, 5 deletions
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);