mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:35:36 +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()
|
||||
{
|
||||
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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue