From 3cd5a5b8411d1d8cbdb23ba232448e577ac2ad8a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 26 Jan 2008 14:38:35 +0000 Subject: [PATCH] Fixed test. Restored fade-out/fade-in effects. --- Source/Examples/Tests/TestResolutionChanges.cs | 2 -- Source/OpenTK/Graphics/DisplayDevice.cs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Examples/Tests/TestResolutionChanges.cs b/Source/Examples/Tests/TestResolutionChanges.cs index b70aa1af..f41f4470 100644 --- a/Source/Examples/Tests/TestResolutionChanges.cs +++ b/Source/Examples/Tests/TestResolutionChanges.cs @@ -22,10 +22,8 @@ namespace Examples.Tests { public static void Main() { - int count = 0; foreach (DisplayDevice dev in DisplayDevice.AvailableDisplays) { - if (count++ == 0) continue; Trace.WriteLine(dev.ToString()); MessageBox.Show(dev.ToString()); // Switch to 640x480@60Hz, keeping bits per pixel the same. diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index 47439aff..6e67cd69 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -194,7 +194,7 @@ namespace OpenTK.Graphics if (resolution == current_resolution) return; - //effect.FadeOut(); + effect.FadeOut(); if (implementation.TryChangeResolution(this, resolution)) { @@ -205,7 +205,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