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