mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed resize event.
This commit is contained in:
parent
68af253169
commit
1e459d23c3
1 changed files with 5 additions and 7 deletions
|
@ -327,6 +327,8 @@ namespace entry
|
|||
, (rect.bottom-rect.top)
|
||||
, SWP_SHOWWINDOW
|
||||
);
|
||||
|
||||
m_eventQueue.postSizeEvent(m_width, m_height);
|
||||
}
|
||||
return 0;
|
||||
|
||||
|
@ -335,13 +337,9 @@ namespace entry
|
|||
uint32_t width = GET_X_LPARAM(_lparam);
|
||||
uint32_t height = GET_Y_LPARAM(_lparam);
|
||||
|
||||
if (m_width != width
|
||||
|| m_height != height)
|
||||
{
|
||||
m_width = width;
|
||||
m_height = height;
|
||||
m_eventQueue.postSizeEvent(m_width, m_height);
|
||||
}
|
||||
m_width = width;
|
||||
m_height = height;
|
||||
m_eventQueue.postSizeEvent(m_width, m_height);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue