From 0aea746b8fc6ed720e5a08a23ba8a1ef6b103734 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 27 Apr 2020 20:14:12 -0700 Subject: A couple of minor updates to imgui Linux implementation --- Imgui/src/ImGuiImplLinuxXCB.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Imgui/src/ImGuiImplLinuxXCB.cpp') diff --git a/Imgui/src/ImGuiImplLinuxXCB.cpp b/Imgui/src/ImGuiImplLinuxXCB.cpp index fbfaba7..8063cda 100644 --- a/Imgui/src/ImGuiImplLinuxXCB.cpp +++ b/Imgui/src/ImGuiImplLinuxXCB.cpp @@ -45,6 +45,8 @@ #include "ImGuiImplLinuxXCB.hpp" +#include "DebugUtilities.hpp" + namespace Diligent { @@ -110,6 +112,11 @@ void ImGuiImplLinuxXCB::NewFrame(Uint32 RenderSurfaceWidth, auto& io = ImGui::GetIO(); io.DeltaTime = static_cast(elapsed_ns.count() / 1e+9); + VERIFY(io.DisplaySize.x == static_cast(RenderSurfaceWidth), "io.DisplaySize.x (", + io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")"); + VERIFY(io.DisplaySize.y == static_cast(RenderSurfaceHeight), "io.DisplaySize.y (", + io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")"); + ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform); } -- cgit v1.2.3