Skip to content

Commit

Permalink
Add zoom flooors (surge-synthesizer#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul authored Sep 4, 2024
1 parent dc12e4d commit ec3537a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sst/sst-jucegui
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ MappingDisplay::MappingDisplay(MacroMappingVariantPane *p)
mappingZones = tmpLOK->mappingZones.get();
keyboard = tmpLOK->keyboard.get();
zoneLayoutViewport = std::make_unique<jcmp::ZoomContainer>(std::move(tmpLOK));
zoneLayoutViewport->setHZoomFloor((36 + 2) * 1.f / 128.f);
zoneLayoutViewport->setVZoomFloor(32.f / 128.f);
addAndMakeVisible(*zoneLayoutViewport);

zoneHeader = std::make_unique<MappingZoneHeader>(editor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ VariantDisplay::VariantDisplay(scxt::ui::app::edit_screen::MacroMappingVariantPa
{
waveforms[i].waveformViewport =
std::make_unique<jcmp::ZoomContainer>(std::make_unique<SampleWaveform>(this));
waveforms[i].waveformViewport->setVZoomFloor(1.0 / 16.0);

waveforms[i].waveform = static_cast<SampleWaveform *>(
waveforms[i].waveformViewport->contents->associatedComponent());
}
Expand Down

0 comments on commit ec3537a

Please sign in to comment.