From 6eed7bdccb13f3a0dbfeb0083e670ed8ff9174a1 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 19 Jan 2013 12:38:30 -0800 Subject: [PATCH] Post initial size event. --- examples/common/entry_windows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/common/entry_windows.cpp b/examples/common/entry_windows.cpp index b4070a80..dc33c298 100644 --- a/examples/common/entry_windows.cpp +++ b/examples/common/entry_windows.cpp @@ -210,6 +210,8 @@ namespace entry bgfx::winSetHwnd(m_hwnd); adjust(DEFAULT_WIDTH, DEFAULT_HEIGHT, true); + m_width = DEFAULT_WIDTH; + m_height = DEFAULT_HEIGHT; m_oldWidth = DEFAULT_WIDTH; m_oldHeight = DEFAULT_HEIGHT; @@ -221,6 +223,8 @@ namespace entry thread.init(mte.threadFunc, &mte); m_init = true; + m_eventQueue.postSizeEvent(m_width, m_height); + MSG msg; msg.message = WM_NULL;