resizable window

This commit is contained in:
lif 2021-12-07 18:10:25 -08:00
parent f5b86f9f8e
commit ed3b78eaa1
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ impl SimpleSdl2CanvasComponent {
let canvas = sdl_context
.video()?
.window(title.as_str(), 256, 224)
.resizable()
.build()?
.into_canvas()
.build()?;

View File

@ -40,6 +40,7 @@ impl SimpleSdl2OpenglComponent {
let window = video
.window(title.as_str(), 256, 224)
.opengl()
.resizable()
.build()?;
#[allow(non_snake_case)]