mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -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)
|
, (rect.bottom-rect.top)
|
||||||
, SWP_SHOWWINDOW
|
, SWP_SHOWWINDOW
|
||||||
);
|
);
|
||||||
|
|
||||||
|
m_eventQueue.postSizeEvent(m_width, m_height);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -335,14 +337,10 @@ namespace entry
|
||||||
uint32_t width = GET_X_LPARAM(_lparam);
|
uint32_t width = GET_X_LPARAM(_lparam);
|
||||||
uint32_t height = GET_Y_LPARAM(_lparam);
|
uint32_t height = GET_Y_LPARAM(_lparam);
|
||||||
|
|
||||||
if (m_width != width
|
|
||||||
|| m_height != height)
|
|
||||||
{
|
|
||||||
m_width = width;
|
m_width = width;
|
||||||
m_height = height;
|
m_height = height;
|
||||||
m_eventQueue.postSizeEvent(m_width, m_height);
|
m_eventQueue.postSizeEvent(m_width, m_height);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
|
|
Loading…
Reference in a new issue