From 62b6b57b8db1847d36fc1ee1cec679f29abb1519 Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 5 Feb 2023 13:51:00 +0700 Subject: [PATCH] Warn about non-integer font sizes --- windows/main.cpp | 1 - windows/settings.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/main.cpp b/windows/main.cpp index 15d6154..b60bcd2 100644 --- a/windows/main.cpp +++ b/windows/main.cpp @@ -44,7 +44,6 @@ static inline void render_table(ImFont* monospace_font, std::vector if (ImGui::TableSetColumnIndex(7)) ImGui::TextUnformatted(logcat_entry->message); } } - clipper.End(); ImGui::PopFont(); if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) { diff --git a/windows/settings.cpp b/windows/settings.cpp index c99b752..d5a6c52 100644 --- a/windows/settings.cpp +++ b/windows/settings.cpp @@ -21,7 +21,7 @@ void settings_window(Config& active_config, Config& inactive_config, bool* p_ope ImGui::TextUnformatted("Logcat command only takes effect when logcat is not running"); ImGui::InputTextWithHint("Logcat command", default_logcat_command, &inactive_config.logcat_command); - ImGui::Text("Font sizes only take effect when LogMeow is restarted"); + ImGui::TextWrapped("Font sizes only take effect when LogMeow is restarted (using non-integer values may cause spacing issues)"); #ifdef USE_FONTCONFIG ImGui::InputFloat("Normal font size", &inactive_config.normal_font_size, 0.5f, 1.0f, "%.3f"); #endif