From a3f346aafbd7d094b5364b12de05231eb5ace3b6 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 28 Feb 2008 13:41:08 +0000 Subject: [PATCH] Updated default modes to use double buffering. --- Source/OpenTK/DisplayMode.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/OpenTK/DisplayMode.cs b/Source/OpenTK/DisplayMode.cs index 17410045..c1ea3348 100644 --- a/Source/OpenTK/DisplayMode.cs +++ b/Source/OpenTK/DisplayMode.cs @@ -81,7 +81,7 @@ namespace OpenTK /// The Width of the DisplayMode in pixels. /// The Height of the DisplayMode in pixels. public DisplayMode(int width, int height) - : this(width, height, DisplayDevice.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 0, false, false, false, 0.0f) + : this(width, height, DisplayDevice.PrimaryDisplay.BitsPerPixel, 16, 0, 0, 2, false, false, false, 0.0f) { } @@ -92,7 +92,7 @@ namespace OpenTK /// The Height of the DisplayMode in pixels. /// The ColorMode of the color buffer. public DisplayMode(int width, int height, ColorMode color) - : this(width, height, color, 16, 0, 0, 0, false, false, false, 0.0f) + : this(width, height, color, 16, 0, 0, 2, false, false, false, 0.0f) { } @@ -104,7 +104,7 @@ namespace OpenTK /// The ColorMode of the color buffer. /// The number of bits in the depth buffer. public DisplayMode(int width, int height, ColorMode color, int depth) - : this(width, height, color, depth, 0, 0, 0, false, false, false, 0.0f) + : this(width, height, color, depth, 0, 0, 2, false, false, false, 0.0f) { } @@ -117,7 +117,7 @@ namespace OpenTK /// The number of bits in the depth buffer. /// True for a fullscreen DisplayMode, false otherwise. public DisplayMode(int width, int height, ColorMode color, int depth, bool fullscreen) - : this(width, height, color, depth, 0, 0, 0, fullscreen, false, false, 0.0f) + : this(width, height, color, depth, 0, 0, 2, fullscreen, false, false, 0.0f) { } @@ -309,7 +309,7 @@ namespace OpenTK internal GraphicsFormat ToGraphicsFormat() { - return new GraphicsFormat(this.Color, this.DepthBits, this.StencilBits, this.AuxBits, this.Buffers, this.Stereo); + return new GraphicsFormat(this.Color.BitsPerPixel, this.DepthBits, this.StencilBits, 0, this.AuxBits, this.Buffers, this.Stereo); } #region --- Overrides ---