From 342338da6ffff7184614ef8cb2e58ac5f6c6762d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 4 May 2008 16:27:41 +0000 Subject: [PATCH] Try to change bits per pixel, too. --- Source/Examples/Tests/TestResolutionChanges.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Examples/Tests/TestResolutionChanges.cs b/Source/Examples/Tests/TestResolutionChanges.cs index f41f4470..92fd05ca 100644 --- a/Source/Examples/Tests/TestResolutionChanges.cs +++ b/Source/Examples/Tests/TestResolutionChanges.cs @@ -26,8 +26,7 @@ namespace Examples.Tests { Trace.WriteLine(dev.ToString()); MessageBox.Show(dev.ToString()); - // Switch to 640x480@60Hz, keeping bits per pixel the same. - dev.ChangeResolution(dev.SelectResolution(640, 480, dev.BitsPerPixel, 60.0f)); + dev.ChangeResolution(dev.SelectResolution(640, 480, 32, 60.0f)); Thread.Sleep(1000); MessageBox.Show(dev.ToString()); dev.RestoreResolution();