Fixes to get compiling with Unreal 5.0 Preview 1

This commit is contained in:
benui 2022-03-01 10:40:09 -08:00
parent e00a133617
commit 7b055e4040
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ FImGuiContextProxy::FImGuiContextProxy(const FString& InName, int32 InContextInd
// Start with the default canvas size.
ResetDisplaySize();
IO.DisplaySize = { DisplaySize.X, DisplaySize.Y };
IO.DisplaySize = { (float)DisplaySize.X, (float)DisplaySize.Y };
// Set the initial DPI scale.
SetDPIScale(InDPIScale);
@ -211,7 +211,7 @@ void FImGuiContextProxy::BeginFrame(float DeltaTime)
ImGuiInterops::CopyInput(IO, InputState);
InputState.ClearUpdateState();
IO.DisplaySize = { DisplaySize.X, DisplaySize.Y };
IO.DisplaySize = { (float)DisplaySize.X, (float)DisplaySize.Y };
ImGui::NewFrame();

View File

@ -29,7 +29,7 @@ void FImGuiDrawList::CopyVertexData(TArray<FSlateVertex>& OutVertexBuffer, const
SlateVertex.Position[1] = VertexPosition.Y;
SlateVertex.ClipRect = VertexClippingRect;
#else
SlateVertex.Position = Transform.TransformPoint(ImGuiInterops::ToVector2D(ImGuiVertex.pos));
SlateVertex.Position = (FVector2f)Transform.TransformPoint(ImGuiInterops::ToVector2D(ImGuiVertex.pos));
#endif // ENGINE_COMPATIBILITY_LEGACY_CLIPPING_API
// Unpack ImU32 color.