Correctly set the primary device in the DisplayDevice constructor.

This commit is contained in:
the_fiddler 2009-11-06 18:34:53 +00:00
parent 4278538317
commit 30aa9ff194

View file

@ -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.",