diff --git a/src/Graphics/GraphicsAdapter.cs b/src/Graphics/GraphicsAdapter.cs index 7e19c05..4989a93 100644 --- a/src/Graphics/GraphicsAdapter.cs +++ b/src/Graphics/GraphicsAdapter.cs @@ -54,10 +54,8 @@ namespace Microsoft.Xna.Framework.Graphics public bool IsDefaultAdapter { - get - { - throw new NotImplementedException(); - } + get; + private set; } /// @@ -163,11 +161,13 @@ namespace Microsoft.Xna.Framework.Graphics internal GraphicsAdapter( DisplayMode currentMode, DisplayModeCollection modes, - string description + string description, + bool isDefault ) { 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 90f6ff0..5917d6c 100644 --- a/src/SDL2/SDL2_FNAPlatform.cs +++ b/src/SDL2/SDL2_FNAPlatform.cs @@ -521,7 +521,8 @@ namespace Microsoft.Xna.Framework SurfaceFormat.Color // FIXME: Assumption! ), new DisplayModeCollection(modes), - SDL.SDL_GetDisplayName(i) + SDL.SDL_GetDisplayName(i), + i == 0 ); } return adapters;