fix available getter bug.
This commit is contained in:
Binary file not shown.
@@ -50,7 +50,7 @@ public static class Lib
|
||||
[DllImport("uDesktopDuplication")]
|
||||
public static extern IntPtr GetRenderEventFunc();
|
||||
[DllImport("uDesktopDuplication")]
|
||||
public static extern bool IsAvailable();
|
||||
public static extern bool IsAvailable(int id);
|
||||
[DllImport("uDesktopDuplication")]
|
||||
public static extern void GetName(int id, StringBuilder buf, int len);
|
||||
[DllImport("uDesktopDuplication")]
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Monitor
|
||||
|
||||
public bool available
|
||||
{
|
||||
get { return Lib.IsAvailable(); }
|
||||
get { return Lib.IsAvailable(id); }
|
||||
}
|
||||
|
||||
public string name
|
||||
|
||||
@@ -50,6 +50,7 @@ public class Texture : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
Debug.Log(monitor.available);
|
||||
monitor.shouldBeUpdated = true;
|
||||
UpdateMaterial();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user