mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:17:05 +00:00
Fixed test. Restored fade-out/fade-in effects.
This commit is contained in:
parent
20b3d6f308
commit
3cd5a5b841
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue