add SystemResizable flag to WindowCreateInfo

pull/20/head
cosmonaut 2022-07-26 19:08:21 -07:00
parent d6bd11d63f
commit 424f410688
2 changed files with 9 additions and 1 deletions

View File

@ -25,6 +25,11 @@ namespace MoonWorks
windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP; windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP;
} }
if (windowCreateInfo.SystemResizable)
{
windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE;
}
ScreenMode = windowCreateInfo.ScreenMode; ScreenMode = windowCreateInfo.ScreenMode;
Handle = SDL.SDL_CreateWindow( Handle = SDL.SDL_CreateWindow(

View File

@ -6,17 +6,20 @@
public uint WindowWidth; public uint WindowWidth;
public uint WindowHeight; public uint WindowHeight;
public ScreenMode ScreenMode; public ScreenMode ScreenMode;
public bool SystemResizable;
public WindowCreateInfo( public WindowCreateInfo(
string windowTitle, string windowTitle,
uint windowWidth, uint windowWidth,
uint windowHeight, uint windowHeight,
ScreenMode screenMode ScreenMode screenMode,
bool systemResizable = false
) { ) {
WindowTitle = windowTitle; WindowTitle = windowTitle;
WindowWidth = windowWidth; WindowWidth = windowWidth;
WindowHeight = windowHeight; WindowHeight = windowHeight;
ScreenMode = screenMode; ScreenMode = screenMode;
SystemResizable = systemResizable;
} }
} }
} }