Merge pull request #7628 from smoogipoo/fix-screenshot-cursor-hide

Fix cursor not hiding for screenshots
This commit is contained in:
Dean Herbert 2020-01-27 12:51:36 +09:00 committed by GitHub
commit 985443a193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ namespace osu.Game.Graphics
{
ScheduledDelegate waitDelegate = host.DrawThread.Scheduler.AddDelayed(() =>
{
if (framesWaited++ < frames_to_wait)
if (framesWaited++ >= frames_to_wait)
// ReSharper disable once AccessToDisposedClosure
framesWaitedEvent.Set();
}, 10, true);