mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 05:43:12 +01:00
Fixup for previous commit.
This commit is contained in:
@@ -140,7 +140,7 @@ namespace entry
|
||||
NSWindow* window = m_window[handle.idx];
|
||||
NSRect originalFrame = [window frame];
|
||||
NSPoint location = [window mouseLocationOutsideOfEventStream];
|
||||
NSRect adjustFrame = [NSWindow contentRectForFrameRect: originalFrame styleMask: NSTitledWindowMask];
|
||||
NSRect adjustFrame = [window contentRectForFrameRect: originalFrame];
|
||||
|
||||
int x = location.x;
|
||||
int y = (int)adjustFrame.size.height - (int)location.y;
|
||||
@@ -585,8 +585,10 @@ namespace entry
|
||||
if (!s_ctx.m_fullscreen)
|
||||
{
|
||||
[NSMenu setMenuBarVisible: false];
|
||||
s_ctx.m_style &= ~NSTitledWindowMask;
|
||||
dispatch_async(dispatch_get_main_queue()
|
||||
, ^{
|
||||
[window setStyleMask: s_ctx.m_style];
|
||||
[window setFrame:screenRect display:YES];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user