1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 03:13:21 +08:00

Fix cursor not hiding for screenshots

This commit is contained in:
smoogipoo 2020-01-27 12:16:00 +09:00
parent 257d14a096
commit 15fd8596c2

View File

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