From d4fb64261a3818ab6dc194ecf31886930b66d3b0 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 22 Apr 2008 21:10:20 +0000 Subject: [PATCH] Temporarily disabled full screen fade effect on resolution change. --- Source/OpenTK/Graphics/DisplayDevice.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 5c8e4c6a..047f2e42 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -34,7 +34,7 @@ namespace OpenTK.Graphics static List available_displays = new List(); static object display_lock = new object(); static DisplayDevice primary_display; - static FadeEffect effect = new FadeEffect(); + //static FadeEffect effect = new FadeEffect(); static IDisplayDeviceDriver implementation; @@ -192,7 +192,7 @@ namespace OpenTK.Graphics if (resolution == current_resolution) return; - effect.FadeOut(); + //effect.FadeOut(); if (implementation.TryChangeResolution(this, resolution)) { @@ -203,7 +203,7 @@ namespace OpenTK.Graphics else throw new GraphicsModeException(String.Format("Device {0}: Failed to change resolution to {1}.", this, resolution)); - effect.FadeIn(); + //effect.FadeIn(); } #endregion @@ -231,7 +231,7 @@ namespace OpenTK.Graphics { if (original_resolution != null) { - effect.FadeOut(); + //effect.FadeOut(); if (implementation.TryRestoreResolution(this)) { @@ -240,7 +240,7 @@ namespace OpenTK.Graphics } else throw new GraphicsModeException(String.Format("Device {0}: Failed to restore resolution.", this)); - effect.FadeIn(); + //effect.FadeIn(); } } @@ -325,7 +325,7 @@ namespace OpenTK.Graphics } #region --- FadeEffect --- - +#if false class FadeEffect : IDisposable { List
forms = new List(); @@ -438,6 +438,6 @@ namespace OpenTK.Graphics #endregion } - +#endif #endregion }