Browse Source

Reduce number precision of zoom levels in Module Browser.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
fa5cd69cd7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/ModuleBrowser.cpp

+ 2
- 2
src/app/ModuleBrowser.cpp View File

@@ -398,7 +398,7 @@ struct ZoomButton : ui::ChoiceButton {


for (float zoom = 0.f; zoom >= -2.f; zoom -= 0.5f) { for (float zoom = 0.f; zoom >= -2.f; zoom -= 0.5f) {
ZoomItem* sortItem = new ZoomItem; ZoomItem* sortItem = new ZoomItem;
sortItem->text = string::f("%.3g%%", std::pow(2.f, zoom) * 100.f);
sortItem->text = string::f("%.0f%%", std::pow(2.f, zoom) * 100.f);
sortItem->zoom = zoom; sortItem->zoom = zoom;
sortItem->browser = browser; sortItem->browser = browser;
menu->addChild(sortItem); menu->addChild(sortItem);
@@ -407,7 +407,7 @@ struct ZoomButton : ui::ChoiceButton {


void step() override { void step() override {
text = "Zoom: "; text = "Zoom: ";
text += string::f("%.3g%%", std::pow(2.f, settings::moduleBrowserZoom) * 100.f);
text += string::f("%.0f%%", std::pow(2.f, settings::moduleBrowserZoom) * 100.f);
ChoiceButton::step(); ChoiceButton::step();
} }
}; };


Loading…
Cancel
Save