output_conf: Fixed scaling issues

This commit is contained in:
Victoria Brekenfeld 2022-04-20 16:06:37 +02:00
parent a8aeba8f09
commit 3ffdf58e0f
5 changed files with 16 additions and 30 deletions

View file

@ -125,7 +125,7 @@ where
.space
.output_geometry(output)
.unwrap_or(Rectangle::from_loc_and_size((0, 0), (0, 0)));
let scale = workspace.space.output_scale(output).unwrap();
let scale = output.current_scale().fractional_scale();
let fps_overlay = fps_ui(_gpu, state, fps, output_geo, scale);
custom_elements.push(fps_overlay.into());