From 0ae8be1a5355a0ae104db3f4c1d51816447c6040 Mon Sep 17 00:00:00 2001 From: Asa Mitaka <86139835+AsaMitakaIT@users.noreply.github.com> Date: Mon, 26 May 2025 14:21:41 +0000 Subject: [PATCH] Fix the scaling factor issue --- .../shell/platform/linux_embedded/window/elinux_window.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flutter/shell/platform/linux_embedded/window/elinux_window.h b/src/flutter/shell/platform/linux_embedded/window/elinux_window.h index e9b6bf66..4ea87a3a 100644 --- a/src/flutter/shell/platform/linux_embedded/window/elinux_window.h +++ b/src/flutter/shell/platform/linux_embedded/window/elinux_window.h @@ -22,12 +22,12 @@ class ELinuxWindow { // Get current window width in physical pixels. uint32_t GetCurrentWidth() const { - return view_properties_.width * current_scale_; + return view_properties_.width; } // Get current window height in physical pixels. uint32_t GetCurrentHeight() const { - return view_properties_.height * current_scale_; + return view_properties_.height; } void SetRotation(FlutterDesktopViewRotation rotation) {