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