aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Window.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Window.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Window.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Window.cs b/Ryujinx.Graphics.Gpu/Window.cs
index 17da1ffa..922583cf 100644
--- a/Ryujinx.Graphics.Gpu/Window.cs
+++ b/Ryujinx.Graphics.Gpu/Window.cs
@@ -90,6 +90,8 @@ namespace Ryujinx.Graphics.Gpu
private int _framesAvailable;
+ public bool IsFrameAvailable => _framesAvailable != 0;
+
/// <summary>
/// Creates a new instance of the GPU presentation window.
/// </summary>
@@ -189,7 +191,7 @@ namespace Ryujinx.Graphics.Gpu
/// If the queue is empty, then no texture is presented.
/// </summary>
/// <param name="swapBuffersCallback">Callback method to call when a new texture should be presented on the screen</param>
- public void Present(Action swapBuffersCallback)
+ public void Present(Action<object> swapBuffersCallback)
{
_context.AdvanceSequence();