mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 01:55:39 +00:00
Try to change bits per pixel, too.
This commit is contained in:
parent
539370d4b7
commit
342338da6f
|
@ -26,8 +26,7 @@ namespace Examples.Tests
|
||||||
{
|
{
|
||||||
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.
|
dev.ChangeResolution(dev.SelectResolution(640, 480, 32, 60.0f));
|
||||||
dev.ChangeResolution(dev.SelectResolution(640, 480, dev.BitsPerPixel, 60.0f));
|
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
MessageBox.Show(dev.ToString());
|
MessageBox.Show(dev.ToString());
|
||||||
dev.RestoreResolution();
|
dev.RestoreResolution();
|
||||||
|
|
Loading…
Reference in a new issue