From ab198f15e71561476065928d3a42898ff85fdfc8 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 6 Nov 2009 18:34:53 +0000 Subject: [PATCH] Correctly set the primary device in the DisplayDevice constructor. --- Source/OpenTK/DisplayDevice.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/OpenTK/DisplayDevice.cs b/Source/OpenTK/DisplayDevice.cs index 86f0e3cd..060770e3 100644 --- a/Source/OpenTK/DisplayDevice.cs +++ b/Source/OpenTK/DisplayDevice.cs @@ -58,8 +58,6 @@ namespace OpenTK lock (display_lock) { available_displays.Add(this); - if (primary) - primary_display = this; } available_resolutions_readonly = available_resolutions.AsReadOnly(); @@ -70,7 +68,7 @@ namespace OpenTK : this() { this.current_resolution = currentResolution; - this.primary = primary; + IsPrimary = primary; this.available_resolutions.AddRange(availableResolutions); Debug.Print("DisplayDevice {0} ({1}) supports {2} resolutions.",