diff --git a/framework/platform-dx/gdevicemanager.cpp b/framework/platform-dx/gdevicemanager.cpp index 13ee4f7..df38105 100644 --- a/framework/platform-dx/gdevicemanager.cpp +++ b/framework/platform-dx/gdevicemanager.cpp @@ -14,8 +14,7 @@ namespace xna { parameters->BackBufferHeight = backBufferHeight; parameters->BackBufferFormat = SurfaceFormat::Color; parameters->IsFullscreen = false; - information.PresentParameters = parameters; - information.Window = game->Window(); + information.PresentParameters = parameters; } void GraphicsDeviceManager::ApplyChanges() { diff --git a/inc/xna/game/gdeviceinfo.hpp b/inc/xna/game/gdeviceinfo.hpp index a3a5d07..9734ce3 100644 --- a/inc/xna/game/gdeviceinfo.hpp +++ b/inc/xna/game/gdeviceinfo.hpp @@ -4,15 +4,18 @@ #include "../default.hpp" namespace xna { + //Holds the settings for creating a graphics device on Windows. struct GraphicsDeviceInformation { GraphicsDeviceInformation() { PresentParameters = snew(); } + //Specifies which graphics adapter to create the device on. sptr Adapter = nullptr; + //Gets the graphics profile, which determines the graphics feature set. xna::GraphicsProfile Profile{ xna::GraphicsProfile::Reach }; + //Specifies the presentation parameters to use when creating a graphics device. sptr PresentParameters = nullptr; - sptr Window = nullptr; }; }