feat: Windows增加分辨率适应,切换分辨率按钮修改

This commit is contained in:
2026-07-23 09:26:13 +08:00
parent 7de30eefa4
commit a1c29246d7
4 changed files with 218 additions and 44 deletions

View File

@@ -26,7 +26,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
// 竖屏 16:9 窗口(宽:高 = 9:16适配控制端竖屏画面。
Win32Window::Size size(450, 800);
if (!window.Create(L"webrtc_controller_flutter", origin, size)) {
return EXIT_FAILURE;
}