Fixing content display on window resize.
This commit is contained in:
Родитель
382c0b685b
Коммит
f47bd56d52
|
@ -367,7 +367,8 @@ namespace entry
|
||||||
{
|
{
|
||||||
WindowHandle handle = { 0 };
|
WindowHandle handle = { 0 };
|
||||||
NSWindow* window = m_window[handle.idx];
|
NSWindow* window = m_window[handle.idx];
|
||||||
NSRect rect = [window frame];
|
NSRect originalFrame = [window frame];
|
||||||
|
NSRect rect = [NSWindow contentRectForFrameRect: originalFrame styleMask: NSTitledWindowMask];
|
||||||
uint32_t width = uint32_t(rect.size.width);
|
uint32_t width = uint32_t(rect.size.width);
|
||||||
uint32_t height = uint32_t(rect.size.height);
|
uint32_t height = uint32_t(rect.size.height);
|
||||||
m_eventQueue.postSizeEvent(handle, width, height);
|
m_eventQueue.postSizeEvent(handle, width, height);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче