mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -560,10 +560,15 @@ namespace entry
|
||||
case WM_USER_WINDOW_DESTROY:
|
||||
{
|
||||
WindowHandle handle = { (uint16_t)_wparam };
|
||||
PostMessageA(m_hwnd[_wparam], WM_CLOSE, 0, 0);
|
||||
m_eventQueue.postWindowEvent(handle);
|
||||
DestroyWindow(m_hwnd[_wparam]);
|
||||
m_hwnd[_wparam] = 0;
|
||||
|
||||
if (0 == handle.idx)
|
||||
{
|
||||
m_exit = true;
|
||||
m_eventQueue.postExitEvent();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -615,15 +620,7 @@ namespace entry
|
||||
|
||||
case WM_QUIT:
|
||||
case WM_CLOSE:
|
||||
if (_hwnd == m_hwnd[0])
|
||||
{
|
||||
m_exit = true;
|
||||
m_eventQueue.postExitEvent();
|
||||
}
|
||||
else
|
||||
{
|
||||
destroyWindow(findHandle(_hwnd) );
|
||||
}
|
||||
destroyWindow(findHandle(_hwnd) );
|
||||
// Don't process message. Window will be destroyed later.
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user