Fixed test. Restored fade-out/fade-in effects.

This commit is contained in:
the_fiddler 2008-01-26 14:38:35 +00:00
parent 20b3d6f308
commit 3cd5a5b841
2 changed files with 2 additions and 4 deletions

View file

@ -22,10 +22,8 @@ namespace Examples.Tests
{ {
public static void Main() public static void Main()
{ {
int count = 0;
foreach (DisplayDevice dev in DisplayDevice.AvailableDisplays) foreach (DisplayDevice dev in DisplayDevice.AvailableDisplays)
{ {
if (count++ == 0) continue;
Trace.WriteLine(dev.ToString()); Trace.WriteLine(dev.ToString());
MessageBox.Show(dev.ToString()); MessageBox.Show(dev.ToString());
// Switch to 640x480@60Hz, keeping bits per pixel the same. // Switch to 640x480@60Hz, keeping bits per pixel the same.

View file

@ -194,7 +194,7 @@ namespace OpenTK.Graphics
if (resolution == current_resolution) if (resolution == current_resolution)
return; return;
//effect.FadeOut(); effect.FadeOut();
if (implementation.TryChangeResolution(this, resolution)) 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}.", else throw new GraphicsModeException(String.Format("Device {0}: Failed to change resolution to {1}.",
this, resolution)); this, resolution));
//effect.FadeIn(); effect.FadeIn();
} }
#endregion #endregion