mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Post initial size event.
This commit is contained in:
parent
a664aef521
commit
6eed7bdccb
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue