mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Make TakeScreenshotAsync await on the internal task
This commit is contained in:
parent
2e5bbe7074
commit
0235eba9de
@ -22,7 +22,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal bool CanShowCursor = true;
|
internal bool CanShowCursor = true;
|
||||||
internal readonly MenuCursor MenuCursor;
|
internal readonly MenuCursor MenuCursor;
|
||||||
|
|
||||||
public CursorContainer Cursor => MenuCursor;
|
public CursorContainer Cursor => MenuCursor;
|
||||||
public bool ProvidingUserCursor => true;
|
public bool ProvidingUserCursor => true;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
private volatile int screenShotTasks;
|
private volatile int screenShotTasks;
|
||||||
|
|
||||||
public async Task TakeScreenshotAsync() => Task.Run(async () =>
|
public async Task TakeScreenshotAsync() => await Task.Run(async () =>
|
||||||
{
|
{
|
||||||
Interlocked.Increment(ref screenShotTasks);
|
Interlocked.Increment(ref screenShotTasks);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user