forked from StrafesNET/strafe-project
my size
This commit is contained in:
parent
48e68d76a4
commit
275373d9bc
@ -35,8 +35,8 @@ pub fn new<'a>(
|
|||||||
if let Some((size,user_settings))=resize.take(){
|
if let Some((size,user_settings))=resize.take(){
|
||||||
println!("Resizing to {:?}",size);
|
println!("Resizing to {:?}",size);
|
||||||
//let t0=std::time::Instant::now();
|
//let t0=std::time::Instant::now();
|
||||||
config.width=size.width.clamp(1,1920/2);
|
config.width=size.width.clamp(1,2560/2);
|
||||||
config.height=size.height.clamp(1,1080/2);
|
config.height=size.height.clamp(1,1440/2);
|
||||||
surface.configure(&device,&config);
|
surface.configure(&device,&config);
|
||||||
graphics.resize(&device,&config,&user_settings);
|
graphics.resize(&device,&config,&user_settings);
|
||||||
//println!("Resize took {:?}",t0.elapsed());
|
//println!("Resize took {:?}",t0.elapsed());
|
||||||
|
Loading…
Reference in New Issue
Block a user