diff --git a/src/Window.cs b/src/Window.cs index e408fe8d..7108d217 100644 --- a/src/Window.cs +++ b/src/Window.cs @@ -25,6 +25,11 @@ namespace MoonWorks windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP; } + if (windowCreateInfo.SystemResizable) + { + windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE; + } + ScreenMode = windowCreateInfo.ScreenMode; Handle = SDL.SDL_CreateWindow( diff --git a/src/WindowCreateInfo.cs b/src/WindowCreateInfo.cs index 83713f3e..78b5a75d 100644 --- a/src/WindowCreateInfo.cs +++ b/src/WindowCreateInfo.cs @@ -6,17 +6,20 @@ public uint WindowWidth; public uint WindowHeight; public ScreenMode ScreenMode; + public bool SystemResizable; public WindowCreateInfo( string windowTitle, uint windowWidth, uint windowHeight, - ScreenMode screenMode + ScreenMode screenMode, + bool systemResizable = false ) { WindowTitle = windowTitle; WindowWidth = windowWidth; WindowHeight = windowHeight; ScreenMode = screenMode; + SystemResizable = systemResizable; } } }