fix cursor visibility in OSX
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user