From 62c9d44b0421d35987520ba84e270e37fdf12592 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 7 Jul 2024 09:22:39 +0400 Subject: screenshot-ui: Fix last selection preservation Another missed thing from the fractional scale refactor... --- src/ui/screenshot_ui.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/screenshot_ui.rs b/src/ui/screenshot_ui.rs index facb9692..6d073220 100644 --- a/src/ui/screenshot_ui.rs +++ b/src/ui/screenshot_ui.rs @@ -100,11 +100,10 @@ impl ScreenshotUi { } }; - let scale = selection.0.current_scale().integer_scale(); let selection = ( selection.0, selection.1.loc, - selection.1.loc + selection.1.size - Size::from((scale, scale)), + selection.1.loc + selection.1.size - Size::from((1, 1)), ); let output_data = screenshots -- cgit