fix: 调整mac和win的初始尺寸,固定初始化尺寸

This commit is contained in:
speakeloudest 2026-01-19 07:31:15 -08:00
parent 8e48a6ff8a
commit d89e8782e6
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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;
}