add SystemResizable flag to WindowCreateInfo

main
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;
}
if (windowCreateInfo.SystemResizable)
{
windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE;
}
ScreenMode = windowCreateInfo.ScreenMode;
Handle = SDL.SDL_CreateWindow(

View File

@ -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;
}
}
}