From a3ce5f65072388091995d72d40c40246588c54e9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 26 Apr 2020 20:39:41 -0700 Subject: Imgui: handling surface pretransform --- Imgui/src/ImGuiImplLinuxX11.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Imgui/src/ImGuiImplLinuxX11.cpp') diff --git a/Imgui/src/ImGuiImplLinuxX11.cpp b/Imgui/src/ImGuiImplLinuxX11.cpp index dfdc439..61038f2 100644 --- a/Imgui/src/ImGuiImplLinuxX11.cpp +++ b/Imgui/src/ImGuiImplLinuxX11.cpp @@ -95,7 +95,9 @@ ImGuiImplLinuxX11::~ImGuiImplLinuxX11() { } -void ImGuiImplLinuxX11::NewFrame() +void ImGuiImplLinuxX11::NewFrame(Uint32 RenderSurfaceWidth, + Uint32 RenderSurfaceHeight, + SURFACE_TRANSFORM SurfacePreTransform) { auto now = std::chrono::high_resolution_clock::now(); auto elapsed_ns = now - m_LastTimestamp; @@ -103,7 +105,7 @@ void ImGuiImplLinuxX11::NewFrame() auto& io = ImGui::GetIO(); io.DeltaTime = static_cast(elapsed_ns.count() / 1e+9); - ImGuiImplDiligent::NewFrame(); + ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform); } -- cgit v1.2.3