Hide cursor in fullscreen mode on OSX fixes issue 3956

This commit is contained in:
Braden 2013-03-18 17:45:08 -05:00
parent a2af6494cf
commit c5033e8594
1 changed files with 2 additions and 0 deletions

View File

@ -808,9 +808,11 @@ void CFrame::ToggleDisplayMode(bool bFullscreen)
if (!bFullscreen) { if (!bFullscreen) {
CGRestorePermanentDisplayConfiguration(); CGRestorePermanentDisplayConfiguration();
CGDisplayRelease(CGMainDisplayID()); CGDisplayRelease(CGMainDisplayID());
CGDisplayShowCursor(CGMainDisplayID());
return; return;
} }
CGDisplayHideCursor(CGMainDisplayID());
CFArrayRef modes = CGDisplayAvailableModes(CGMainDisplayID()); CFArrayRef modes = CGDisplayAvailableModes(CGMainDisplayID());
for (CFIndex i = 0; i < CFArrayGetCount(modes); i++) for (CFIndex i = 0; i < CFArrayGetCount(modes); i++)
{ {