mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:17:05 +00:00
Explicitly change to 640x480@60Hz.
This commit is contained in:
parent
0bbad4e8b9
commit
3ab17902de
|
@ -25,10 +25,11 @@ namespace Examples.Tests
|
||||||
{
|
{
|
||||||
Trace.WriteLine(dev.ToString());
|
Trace.WriteLine(dev.ToString());
|
||||||
MessageBox.Show(dev.ToString());
|
MessageBox.Show(dev.ToString());
|
||||||
// Switch to the first available resolution that has the same bpp as the current one (usually 640x480@60Hz)
|
// Switch to 640x480@60Hz, keeping bits per pixel the same.
|
||||||
dev.ChangeResolution(dev.SelectResolution(0, 0, dev.BitsPerPixel, 0));
|
dev.ChangeResolution(dev.SelectResolution(640, 480, dev.BitsPerPixel, 60.0f));
|
||||||
MessageBox.Show(dev.ToString());
|
MessageBox.Show(dev.ToString());
|
||||||
dev.RestoreResolution();
|
dev.RestoreResolution();
|
||||||
|
MessageBox.Show(dev.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue