diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-11 03:57:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-11 03:57:00 +0200 |
commit | 8aaf837c6f223c77563b6ed03eb7576163f784bb (patch) | |
tree | f3174744c4a491ae5bb5ca5bbe86b3a13c738d5a | |
parent | 98237cf388b43457a08181fd5693ec24e4180731 (diff) |
Reduce cpu usage when cursor visible over video
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index ad7e893..4cbf752 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1307,9 +1307,8 @@ namespace QuickMedia { cursor_visible = false; window.setMouseCursorVisible(false); } - } else { - std::this_thread::sleep_for(std::chrono::milliseconds(50)); } + std::this_thread::sleep_for(std::chrono::milliseconds(50)); } window.setMouseCursorVisible(true); |