mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:35:39 +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)
|
||||
{
|
||||
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.",
|
||||
|
|
Loading…
Reference in a new issue