diff --git a/src/Graphics/GraphicsAdapter.cs b/src/Graphics/GraphicsAdapter.cs index 4989a93..1e6074d 100644 --- a/src/Graphics/GraphicsAdapter.cs +++ b/src/Graphics/GraphicsAdapter.cs @@ -54,8 +54,10 @@ namespace Microsoft.Xna.Framework.Graphics public bool IsDefaultAdapter { - get; - private set; + get + { + return this == DefaultAdapter; + } } /// @@ -161,13 +163,11 @@ namespace Microsoft.Xna.Framework.Graphics internal GraphicsAdapter( DisplayMode currentMode, DisplayModeCollection modes, - string description, - bool isDefault + string description ) { CurrentDisplayMode = currentMode; SupportedDisplayModes = modes; Description = description; - IsDefaultAdapter = isDefault; UseNullDevice = false; UseReferenceDevice = false; } diff --git a/src/SDL2/SDL2_FNAPlatform.cs b/src/SDL2/SDL2_FNAPlatform.cs index 5917d6c..90f6ff0 100644 --- a/src/SDL2/SDL2_FNAPlatform.cs +++ b/src/SDL2/SDL2_FNAPlatform.cs @@ -521,8 +521,7 @@ namespace Microsoft.Xna.Framework SurfaceFormat.Color // FIXME: Assumption! ), new DisplayModeCollection(modes), - SDL.SDL_GetDisplayName(i), - i == 0 + SDL.SDL_GetDisplayName(i) ); } return adapters;