From d89e8782e69d674155d53da6aa8d39c2c0169dc4 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Mon, 19 Jan 2026 07:31:15 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4mac=E5=92=8Cwin?= =?UTF-8?q?=E7=9A=84=E5=88=9D=E5=A7=8B=E5=B0=BA=E5=AF=B8=EF=BC=8C=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E5=88=9D=E5=A7=8B=E5=8C=96=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- macos/Runner/MainFlutterWindow.swift | 3 ++- windows/runner/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift index f7112d1..4dd6296 100755 --- a/macos/Runner/MainFlutterWindow.swift +++ b/macos/Runner/MainFlutterWindow.swift @@ -5,7 +5,8 @@ import window_manager class MainFlutterWindow: NSWindow { override func awakeFromNib() { let flutterViewController = FlutterViewController() - let windowFrame = self.frame + var windowFrame = self.frame + windowFrame.size = NSSize(width: 375, height: 800) self.contentViewController = flutterViewController self.setFrame(windowFrame, display: true) diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 72a0ce8..a79292b 100755 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -85,7 +85,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); - Win32Window::Size size(1280, 720); + Win32Window::Size size(375, 800); if (!window.Create(L"HiFastVPN", origin, size)) { return EXIT_FAILURE; }