forked from MoonsideGames/MoonWorks
add SystemResizable flag to WindowCreateInfo
parent
d6bd11d63f
commit
424f410688
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue