Try fixing NvFlinger rotation with scaling, return correct error code on WaitSignal timeout, always display window at the center of the screen
This commit is contained in:
parent
3edb66f389
commit
344fc8a55d
6 changed files with 46 additions and 24 deletions
|
@ -24,7 +24,7 @@ namespace Ryujinx.Core.OsHle
|
|||
WaitingThreads = new List<HThread>();
|
||||
}
|
||||
|
||||
public void WaitForSignal(HThread Thread)
|
||||
public bool WaitForSignal(HThread Thread)
|
||||
{
|
||||
int Count = Process.Memory.ReadInt32(CondVarAddress);
|
||||
|
||||
|
@ -41,12 +41,14 @@ namespace Ryujinx.Core.OsHle
|
|||
}
|
||||
else
|
||||
{
|
||||
Process.Scheduler.WaitForSignal(Thread, (int)(Timeout / 1000000));
|
||||
bool Result = Process.Scheduler.WaitForSignal(Thread, (int)(Timeout / 1000000));
|
||||
|
||||
lock (WaitingThreads)
|
||||
{
|
||||
WaitingThreads.Remove(Thread);
|
||||
}
|
||||
|
||||
return Result;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,6 +62,8 @@ namespace Ryujinx.Core.OsHle
|
|||
}
|
||||
|
||||
ReleaseCondVarValue();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SetSignal(HThread Thread, int Count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue