mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Fixup for previous commit.
This commit is contained in:
parent
f9750906c0
commit
ccb95fc3d9
1 changed files with 3 additions and 1 deletions
|
@ -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];
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue