Seal editor Win32 platform boundary

This commit is contained in:
2026-04-26 23:30:29 +08:00
parent de64d9a698
commit 09b1289338
22 changed files with 410 additions and 249 deletions

View File

@@ -3,6 +3,7 @@
#include "Platform/Win32/Chrome/EditorWindowChromeController.h"
#include "Platform/Win32/Windowing/EditorWindowSession.h"
#include "Platform/Win32/Windowing/EditorWindowSupport.h"
#include "Platform/Win32/Windowing/Win32EditorWindowRenderRuntimeSurface.h"
#include "Platform/Win32/Runtime/EditorWindowInputController.h"
#include "Windowing/Content/EditorWindowContentController.h"
#include <XCEditor/Docking/UIEditorDockHostTransfer.h>
@@ -11,6 +12,7 @@
#include <XCEngine/UI/Types.h>
#include <cassert>
#include <algorithm>
#include <memory>
#include <optional>
#include <sstream>
#include <windowsx.h>
@@ -179,7 +181,8 @@ bool EditorWindow::CaptureRuntimeSurface(
clientHeight = 1u;
}
outSurface.nativeWindowHandle = hwnd;
outSurface.renderSurface =
std::make_shared<Win32EditorWindowRenderRuntimeSurface>(hwnd);
outSurface.widthPixels = clientWidth;
outSurface.heightPixels = clientHeight;
outSurface.dpiScale = GetDpiScale();