From 1caf0c77eb736a7a2203bb9729e2a9720beaf56a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 26 Jan 2008 10:40:20 +0000 Subject: [PATCH] Explicitly change to 640x480@60Hz. --- Source/Examples/Tests/TestResolutionChanges.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Examples/Tests/TestResolutionChanges.cs b/Source/Examples/Tests/TestResolutionChanges.cs index 426d32ca..6d6aeda0 100644 --- a/Source/Examples/Tests/TestResolutionChanges.cs +++ b/Source/Examples/Tests/TestResolutionChanges.cs @@ -25,10 +25,11 @@ namespace Examples.Tests { Trace.WriteLine(dev.ToString()); MessageBox.Show(dev.ToString()); - // Switch to the first available resolution that has the same bpp as the current one (usually 640x480@60Hz) - dev.ChangeResolution(dev.SelectResolution(0, 0, dev.BitsPerPixel, 0)); + // Switch to 640x480@60Hz, keeping bits per pixel the same. + dev.ChangeResolution(dev.SelectResolution(640, 480, dev.BitsPerPixel, 60.0f)); MessageBox.Show(dev.ToString()); dev.RestoreResolution(); + MessageBox.Show(dev.ToString()); } } }