Browse Source

Increase maximum Browser zoom to 200%.

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

+ 1
- 1
src/app/Browser.cpp View File

@@ -445,7 +445,7 @@ struct ZoomButton : ui::ChoiceButton {
menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y)); menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y));
menu->box.size.x = box.size.x; menu->box.size.x = box.size.x;


for (float zoom = 0.f; zoom >= -2.f; zoom -= 0.5f) {
for (float zoom = 1.f; zoom >= -2.f; zoom -= 0.5f) {
ZoomItem* sortItem = new ZoomItem; ZoomItem* sortItem = new ZoomItem;
sortItem->text = string::f("%.0f%%", 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;


Loading…
Cancel
Save