Exporting is working and rendering correctly in pcsx-redux
This commit is contained in:
28
Runtime/Utils.cs
Normal file
28
Runtime/Utils.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace PSXSplash.RuntimeCode
|
||||
{
|
||||
public class ProhibitedArea
|
||||
{
|
||||
public int X;
|
||||
public int Y;
|
||||
public int Width;
|
||||
public int Height;
|
||||
|
||||
public static ProhibitedArea FromUnityRect(Rect rect)
|
||||
{
|
||||
return new ProhibitedArea
|
||||
{
|
||||
X = Mathf.RoundToInt(rect.x),
|
||||
Y = Mathf.RoundToInt(rect.y),
|
||||
Width = Mathf.RoundToInt(rect.width),
|
||||
Height = Mathf.RoundToInt(rect.height)
|
||||
};
|
||||
}
|
||||
|
||||
public Rect ToUnityRect()
|
||||
{
|
||||
return new Rect(X, Y, Width, Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user