diff --git a/include/CSFML/Window/WindowBase.h b/include/CSFML/Window/WindowBase.h index c502876..29f93de 100644 --- a/include/CSFML/Window/WindowBase.h +++ b/include/CSFML/Window/WindowBase.h @@ -75,11 +75,12 @@ typedef enum /// \param mode Video mode to use (defines the width, height and depth of the rendering area of the windowBase) /// \param title Title of the window /// \param style Window style +/// \param state Window state /// /// \return A new sfWindow object /// //////////////////////////////////////////////////////////// -CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style); +CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style, sfWindowState state); //////////////////////////////////////////////////////////// /// \brief Construct a new window (with a UTF-32 title) @@ -93,11 +94,12 @@ CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* /// \param mode Video mode to use (defines the width, height and depth of the rendering area of the windowBase) /// \param title Title of the window (UTF-32) /// \param style Window style +/// \param state Window state /// /// \return A new sfWindow object /// //////////////////////////////////////////////////////////// -CSFML_WINDOW_API sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style); +CSFML_WINDOW_API sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style, sfWindowState state); //////////////////////////////////////////////////////////// /// \brief Construct a window from an existing control diff --git a/src/CSFML/Window/WindowBase.cpp b/src/CSFML/Window/WindowBase.cpp index b092ef5..4a555f7 100644 --- a/src/CSFML/Window/WindowBase.cpp +++ b/src/CSFML/Window/WindowBase.cpp @@ -36,22 +36,23 @@ //////////////////////////////////////////////////////////// -sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style) +sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style, sfWindowState state) { // Create the window auto* windowBase = new sfWindowBase; - windowBase->This.create(convertVideoMode(mode), title, style); + windowBase->This.create(convertVideoMode(mode), title, style, static_cast(state)); return windowBase; } //////////////////////////////////////////////////////////// -sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style) +sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style, sfWindowState state) { // Create the window auto* windowBase = new sfWindowBase; - windowBase->This.create(convertVideoMode(mode), reinterpret_cast(title), style); + windowBase->This + .create(convertVideoMode(mode), reinterpret_cast(title), style, static_cast(state)); return windowBase; }