Warn about non-integer font sizes

This commit is contained in:
blankie 2023-02-05 13:51:00 +07:00
parent b545fbffd5
commit 62b6b57b8d
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 1 additions and 2 deletions

View File

@ -44,7 +44,6 @@ static inline void render_table(ImFont* monospace_font, std::vector<LogcatEntry>
if (ImGui::TableSetColumnIndex(7)) ImGui::TextUnformatted(logcat_entry->message);
}
}
clipper.End();
ImGui::PopFont();
if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) {

View File

@ -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