if (width == resolution.Width && height == resolution.Height && bpp == resolution.BitsPerPixel && System.Math.Abs(freq - resolution.RefreshRate) < 1e-6)
{
- if (displaysCaptured.Contains(display) == false)
- {
- CG.DisplayCapture(display);
- }
+// if (displaysCaptured.Contains(display) == false)
+// {
+// CG.DisplayCapture(display);
+// }
Debug.Print("Changing resolution to {0}x{1}x{2}@{3}.", width, height, bpp, freq);
Debug.Print("Restoring resolution.");
CG.DisplaySwitchToMode(display, storedModes[display]);
- CG.DisplayRelease(display);
+ //CG.DisplayRelease(display);
displaysCaptured.Remove(display);
return true;