mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 16:05:32 +00:00
Correctly set the primary device in the DisplayDevice constructor.
This commit is contained in:
parent
4278538317
commit
30aa9ff194
|
@ -58,8 +58,6 @@ namespace OpenTK
|
||||||
lock (display_lock)
|
lock (display_lock)
|
||||||
{
|
{
|
||||||
available_displays.Add(this);
|
available_displays.Add(this);
|
||||||
if (primary)
|
|
||||||
primary_display = this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
available_resolutions_readonly = available_resolutions.AsReadOnly();
|
available_resolutions_readonly = available_resolutions.AsReadOnly();
|
||||||
|
@ -70,7 +68,7 @@ namespace OpenTK
|
||||||
: this()
|
: this()
|
||||||
{
|
{
|
||||||
this.current_resolution = currentResolution;
|
this.current_resolution = currentResolution;
|
||||||
this.primary = primary;
|
IsPrimary = primary;
|
||||||
this.available_resolutions.AddRange(availableResolutions);
|
this.available_resolutions.AddRange(availableResolutions);
|
||||||
|
|
||||||
Debug.Print("DisplayDevice {0} ({1}) supports {2} resolutions.",
|
Debug.Print("DisplayDevice {0} ({1}) supports {2} resolutions.",
|
||||||
|
|
Loading…
Reference in a new issue