Seal editor Win32 platform boundary
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user