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/ImGuiImplLinuxXCB.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Imgui/src/ImGuiImplLinuxXCB.cpp') diff --git a/Imgui/src/ImGuiImplLinuxXCB.cpp b/Imgui/src/ImGuiImplLinuxXCB.cpp index 9112c09..fbfaba7 100644 --- a/Imgui/src/ImGuiImplLinuxXCB.cpp +++ b/Imgui/src/ImGuiImplLinuxXCB.cpp @@ -100,7 +100,9 @@ ImGuiImplLinuxXCB::~ImGuiImplLinuxXCB() } } -void ImGuiImplLinuxXCB::NewFrame() +void ImGuiImplLinuxXCB::NewFrame(Uint32 RenderSurfaceWidth, + Uint32 RenderSurfaceHeight, + SURFACE_TRANSFORM SurfacePreTransform) { auto now = std::chrono::high_resolution_clock::now(); auto elapsed_ns = now - m_LastTimestamp; @@ -108,7 +110,7 @@ void ImGuiImplLinuxXCB::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