From d157e983c4a1b067d26800c66d2e95ca5b944c7d Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 30 Jan 2023 12:14:15 +0700 Subject: [PATCH] Remove set item spacing --- windows/logs.cpp | 3 --- windows/main.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/windows/logs.cpp b/windows/logs.cpp index 964e243..524d5bf 100644 --- a/windows/logs.cpp +++ b/windows/logs.cpp @@ -6,8 +6,6 @@ #include "logs.h" static inline void render_table(ImFont* monospace_font, bool* autoscrolling) { - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - ImGui::TableSetupScrollFreeze(0, 1); ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None); ImGui::TableSetupColumn("Message", ImGuiTableColumnFlags_None); @@ -35,7 +33,6 @@ static inline void render_table(ImFont* monospace_font, bool* autoscrolling) { clipper.End(); ImGui::PopFont(); - ImGui::PopStyleVar(); if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) { *autoscrolling = true; diff --git a/windows/main.cpp b/windows/main.cpp index ce9623b..de0408f 100644 --- a/windows/main.cpp +++ b/windows/main.cpp @@ -8,8 +8,6 @@ #include "main.h" static inline void render_table(ImFont* monospace_font, std::vector& logcat_entries, std::vector& filtered_logcat_entry_offsets) { - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - ImGui::TableSetupScrollFreeze(0, 1); ImGui::TableSetupColumn("Time", ImGuiTableColumnFlags_None); ImGui::TableSetupColumn("User", ImGuiTableColumnFlags_None); @@ -47,7 +45,6 @@ static inline void render_table(ImFont* monospace_font, std::vector clipper.End(); ImGui::PopFont(); - ImGui::PopStyleVar(); if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) { ImGui::SetScrollHereY(1.0f); }