From fff713d0665900b7fd3fe12ebe55802d8fbb9bb1 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 22 Sep 2022 19:36:43 +0200 Subject: [PATCH] Fix resizing with HiDPI standalones --- src/wrapper/standalone/context.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wrapper/standalone/context.rs b/src/wrapper/standalone/context.rs index b7a1eb47..bb504589 100644 --- a/src/wrapper/standalone/context.rs +++ b/src/wrapper/standalone/context.rs @@ -50,13 +50,9 @@ impl GuiContext for WrapperGuiContext { let (unscaled_width, unscaled_height) = self.wrapper.editor.as_ref().unwrap().size(); // This will cause the editor to be resized at the start of the next frame - let dpi_scale = self.wrapper.dpi_scale(); let push_successful = self .gui_task_sender - .send(GuiTask::Resize( - (unscaled_width as f32 * dpi_scale).round() as u32, - (unscaled_height as f32 * dpi_scale).round() as u32, - )) + .send(GuiTask::Resize(unscaled_width, unscaled_height)) .is_ok(); nih_debug_assert!(push_successful, "Could not queue window resize");