fix available getter bug.

This commit is contained in:
hecomi
2016-11-05 23:25:22 +09:00
parent f9f8b14f46
commit 2b108bd4b1
4 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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();
} }