فهرست منبع

Post initial size event.

bkaradzic 13 سال پیش
والد
کامیت
6eed7bdccb
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      examples/common/entry_windows.cpp

+ 4 - 0
examples/common/entry_windows.cpp

@@ -210,6 +210,8 @@ namespace entry
 			bgfx::winSetHwnd(m_hwnd);
 			bgfx::winSetHwnd(m_hwnd);
 
 
 			adjust(DEFAULT_WIDTH, DEFAULT_HEIGHT, true);
 			adjust(DEFAULT_WIDTH, DEFAULT_HEIGHT, true);
+			m_width = DEFAULT_WIDTH;
+			m_height = DEFAULT_HEIGHT;
 			m_oldWidth = DEFAULT_WIDTH;
 			m_oldWidth = DEFAULT_WIDTH;
 			m_oldHeight = DEFAULT_HEIGHT;
 			m_oldHeight = DEFAULT_HEIGHT;
 
 
@@ -221,6 +223,8 @@ namespace entry
 			thread.init(mte.threadFunc, &mte);
 			thread.init(mte.threadFunc, &mte);
 			m_init = true;
 			m_init = true;
 
 
+			m_eventQueue.postSizeEvent(m_width, m_height);
+
 			MSG msg;
 			MSG msg;
 			msg.message = WM_NULL;
 			msg.message = WM_NULL;