fix cursor visibility in OSX

This commit is contained in:
2019-03-11 18:39:11 +01:00
parent c111495cae
commit 5bef9c7286
7 changed files with 43 additions and 23 deletions

View File

@@ -43,8 +43,7 @@ void App::show_cursor()
#ifdef _WIN32
win32_show_cursor(true);
#elif __OSX__
if (!CGCursorIsVisible())
[NSCursor unhide];
[osx_view show_cursor:true];
#endif
}
@@ -53,8 +52,7 @@ void App::hide_cursor()
#ifdef _WIN32
win32_show_cursor(false);
#elif __OSX__
if (CGCursorIsVisible())
[NSCursor hide];
[osx_view show_cursor:false];
#endif
}