File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ thread_local! {
4949 static LAST_GLOBALS : RefCell <HashMap <& ' static str , Py <PyAny >>> = RefCell :: new( HashMap :: new( ) ) ;
5050}
5151
52-
5352/// Writes a new value to globals, iff the new value does not match a previous tracked value.
5453pub ( crate ) fn set_tracked < ' py , V > (
5554 globals : & Bound < ' py , PyAny > ,
Original file line number Diff line number Diff line change @@ -368,7 +368,9 @@ pub fn resize(
368368 let scale = window. resolution . scale_factor ( ) ;
369369 let physical_w = ( width as f32 * scale) as u32 ;
370370 let physical_h = ( height as f32 * scale) as u32 ;
371- window. resolution . set_physical_resolution ( physical_w, physical_h) ;
371+ window
372+ . resolution
373+ . set_physical_resolution ( physical_w, physical_h) ;
372374 Ok ( ( ) )
373375 } else {
374376 Err ( error:: ProcessingError :: SurfaceNotFound )
@@ -383,10 +385,9 @@ pub fn set_pixel_density(
383385 let logical_w = window. resolution . width ( ) ;
384386 let logical_h = window. resolution . height ( ) ;
385387 window. resolution . set_scale_factor_override ( Some ( density) ) ;
386- window. resolution . set_physical_resolution (
387- ( logical_w * density) as u32 ,
388- ( logical_h * density) as u32 ,
389- ) ;
388+ window
389+ . resolution
390+ . set_physical_resolution ( ( logical_w * density) as u32 , ( logical_h * density) as u32 ) ;
390391 Ok ( ( ) )
391392 } else {
392393 Err ( error:: ProcessingError :: SurfaceNotFound )
You can’t perform that action at this time.
0 commit comments