VOID_WindowModule: Added cache-skipping option for decorated windows.
VOID_WindowModule: Added cache-skipping option for decorated windows.

--- a/API/VOID_Module.cs
+++ b/API/VOID_Module.cs
@@ -519,7 +519,7 @@
 			}
 		}
 
-		public static Action<int> DecorateWindow(Action<int> func, Rect windowRect, Callback<bool> callBack)
+		public static Action<int> DecorateWindow(Action<int> func, Rect windowRect, Callback<bool> callBack, bool useCache)
 		{
 			if (DecoratedWindows == null)
 			{
@@ -528,7 +528,7 @@
 
 			int hashCode = func.GetHashCode();
 
-			if (!DecoratedWindows.ContainsKey(hashCode))
+			if (!useCache || !DecoratedWindows.ContainsKey(hashCode))
 			{
 				DecoratedWindows[hashCode] = delegate(int id)
 				{
@@ -563,6 +563,11 @@
 			return DecoratedWindows[hashCode];
 		}
 
+		public static Action<int> DecorateWindow(Action<int> func, Rect windowRect, Callback<bool> callBack)
+		{
+			return DecorateWindow(func, windowRect, callBack, true);
+		}
+
 		public static void UncacheWindow(Action<int> func)
 		{
 			if (DecoratedWindows != null)