Skip to content

Commit

Permalink
Floor zoom at 25 (#4519)
Browse files Browse the repository at this point in the history
Zoom below 25 just stays at 25. But no other constraint.

Closes #628
  • Loading branch information
baconpaul authored May 7, 2021
1 parent 700fa12 commit d3029a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5201,10 +5201,10 @@ void SurgeGUIEditor::setZoomFactor(float zf) { setZoomFactor(zf, false); }

void SurgeGUIEditor::setZoomFactor(float zf, bool resizeWindow)
{
zoomFactor = zf;
zoomFactor = std::max(zf, 25.f);
if (currentSkin && resizeWindow)
parentEd->setSize(currentSkin->getWindowSizeX(), currentSkin->getWindowSizeY());
parentEd->setScaleFactor(zf * 0.01);
parentEd->setScaleFactor(zoomFactor * 0.01);
}

void SurgeGUIEditor::setBitmapZoomFactor(float zf)
Expand Down

0 comments on commit d3029a4

Please sign in to comment.