summaryrefslogtreecommitdiff
path: root/Editor/GUI/ContainerWindow.cpp
diff options
context:
space:
mode:
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);