forge
Explore
Log in

Don't you dare go Hollow

screencopy: Clarify the use of integer scale

Browse files at this commit

66aae91bcab3c475a0f54076a16ebbac2d6b367aIvan MolodetskikhParent: 07bd76e
src/protocols/screencopy.rsmodified+2 -0
@@ -206,6 +206,8 @@ where
206 206
207 let rect = Rectangle::from_loc_and_size((x, y), (width, height));207 let rect = Rectangle::from_loc_and_size((x, y), (width, height));
208 208
209+ // This uses integer scale because fractional scale can only be signaled to
210+ // surfaces, so screencopy clients can only see the integer scale for outputs.
209 let output_scale = output.current_scale().integer_scale();211 let output_scale = output.current_scale().integer_scale();
210 let physical_rect = rect.to_physical(output_scale);212 let physical_rect = rect.to_physical(output_scale);
211 213