resizable window
This commit is contained in:
parent
f5b86f9f8e
commit
ed3b78eaa1
|
@ -57,6 +57,7 @@ impl SimpleSdl2CanvasComponent {
|
|||
let canvas = sdl_context
|
||||
.video()?
|
||||
.window(title.as_str(), 256, 224)
|
||||
.resizable()
|
||||
.build()?
|
||||
.into_canvas()
|
||||
.build()?;
|
||||
|
|
|
@ -40,6 +40,7 @@ impl SimpleSdl2OpenglComponent {
|
|||
let window = video
|
||||
.window(title.as_str(), 256, 224)
|
||||
.opengl()
|
||||
.resizable()
|
||||
.build()?;
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
|
Loading…
Reference in New Issue