From e98a5115b588195aa8eba9f0e197b703fc5d0f22 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 28 Aug 2021 23:16:00 -0400 Subject: [PATCH] Double-space meter texts. --- src/app/MenuBar.cpp | 2 +- src/app/ModuleWidget.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 9209fbcb..6aaddc02 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -822,7 +822,7 @@ struct MeterLabel : ui::Label { double meterAverage = APP->engine->getMeterAverage(); double meterMax = APP->engine->getMeterMax(); - text = string::f("%.1f fps / %.1f%% avg / %.1f%% max", 1.0 / frameDurationAvg, meterAverage * 100, meterMax * 100); + text = string::f("%.1f fps %.1f%% avg %.1f%% max", 1.0 / frameDurationAvg, meterAverage * 100, meterMax * 100); Label::step(); } }; diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index a5f1418d..5facc0fa 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -267,9 +267,9 @@ void ModuleWidget::draw(const DrawArgs& args) { float microseconds = meterBuffer[meterIndex] * 1e6f; std::string meterText; if (box.size.x >= RACK_GRID_WIDTH * 9) - meterText = string::f("%.2f μs/sample %.1f%%", microseconds, percent); + meterText = string::f("%.2f μs/sample %.1f%%", microseconds, percent); else if (box.size.x >= RACK_GRID_WIDTH * 6) - meterText = string::f("%.2f μs %.1f%%", microseconds, percent); + meterText = string::f("%.2f μs %.1f%%", microseconds, percent); else meterText = string::f("%.1f%%", percent);