From b6c2a369393b0fcfd2ae00eaf699fd3e2ca657ea Mon Sep 17 00:00:00 2001 From: vamidi Date: Fri, 27 Jul 2018 00:05:48 +0200 Subject: [PATCH] Updated imgui_tabs.cpp to version 1.6+ of Imgui I use this in my current version of imgui and I could not compile it and I only needed to change this and it worked. Hope you don't mind. --- imgui_tabs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui_tabs.cpp b/imgui_tabs.cpp index e9305bb..ecfc892 100644 --- a/imgui_tabs.cpp +++ b/imgui_tabs.cpp @@ -133,7 +133,7 @@ void ImGui::TabBar::_drawTabBarTop(const char *label) { // Gather pointers and references ImGuiWindow* wind = ImGui::GetCurrentWindow(); ImDrawList* dl = wind->DrawList; - ImGuiDrawContext& dc = wind->DC; + ImGuiWindowTempData& dc = wind->DC; ImGuiStyle& style = ImGui::GetStyle(); std::string str = label; @@ -255,7 +255,7 @@ void ImGui::TabBar::_drawTabBarBottom() { ImGuiWindow* wind = ImGui::GetCurrentWindow(); ImDrawList* dl = wind->DrawList; ImGuiStyle& style = ImGui::GetStyle(); - ImGuiDrawContext& dc = wind->DC; + ImGuiWindowTempData& dc = wind->DC; const ImVec2 padding = style.WindowPadding;