mirror of
				https://github.com/kevinporetti/UnrealImGui.git
				synced 2025-11-03 23:33:16 +00:00 
			
		
		
		
	Fixes to get compiling with Unreal 5.0 Preview 1
This commit is contained in:
		
							parent
							
								
									e00a133617
								
							
						
					
					
						commit
						7b055e4040
					
				@ -92,7 +92,7 @@ FImGuiContextProxy::FImGuiContextProxy(const FString& InName, int32 InContextInd
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// Start with the default canvas size.
 | 
						// Start with the default canvas size.
 | 
				
			||||||
	ResetDisplaySize();
 | 
						ResetDisplaySize();
 | 
				
			||||||
	IO.DisplaySize = { DisplaySize.X, DisplaySize.Y };
 | 
						IO.DisplaySize = { (float)DisplaySize.X, (float)DisplaySize.Y };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Set the initial DPI scale.
 | 
						// Set the initial DPI scale.
 | 
				
			||||||
	SetDPIScale(InDPIScale);
 | 
						SetDPIScale(InDPIScale);
 | 
				
			||||||
@ -211,7 +211,7 @@ void FImGuiContextProxy::BeginFrame(float DeltaTime)
 | 
				
			|||||||
		ImGuiInterops::CopyInput(IO, InputState);
 | 
							ImGuiInterops::CopyInput(IO, InputState);
 | 
				
			||||||
		InputState.ClearUpdateState();
 | 
							InputState.ClearUpdateState();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		IO.DisplaySize = { DisplaySize.X, DisplaySize.Y };
 | 
							IO.DisplaySize = { (float)DisplaySize.X, (float)DisplaySize.Y };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		ImGui::NewFrame();
 | 
							ImGui::NewFrame();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ void FImGuiDrawList::CopyVertexData(TArray<FSlateVertex>& OutVertexBuffer, const
 | 
				
			|||||||
		SlateVertex.Position[1] = VertexPosition.Y;
 | 
							SlateVertex.Position[1] = VertexPosition.Y;
 | 
				
			||||||
		SlateVertex.ClipRect = VertexClippingRect;
 | 
							SlateVertex.ClipRect = VertexClippingRect;
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
		SlateVertex.Position = Transform.TransformPoint(ImGuiInterops::ToVector2D(ImGuiVertex.pos));
 | 
							SlateVertex.Position = (FVector2f)Transform.TransformPoint(ImGuiInterops::ToVector2D(ImGuiVertex.pos));
 | 
				
			||||||
#endif // ENGINE_COMPATIBILITY_LEGACY_CLIPPING_API
 | 
					#endif // ENGINE_COMPATIBILITY_LEGACY_CLIPPING_API
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Unpack ImU32 color.
 | 
							// Unpack ImU32 color.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user