fix selection and cursor

This commit is contained in:
2019-03-09 23:07:06 +01:00
parent f0fed897f6
commit 3af923db96
5 changed files with 57 additions and 25 deletions

View File

@@ -131,7 +131,10 @@ void win32_show_cursor(bool visible)
{
std::lock_guard<std::mutex> lock(main_task_mutex);
main_tasklist.emplace_back([=] {
ShowCursor(visible);
if (visible)
while (ShowCursor(true) < 0);
else
while (ShowCursor(false) >= 0);
});
}