computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit e17fdc4ab588d26c5a2c66bcf5089f42528814f5
parent 3df24a46f26120e980d38c38efe4be6374fdcbce
Author: Adam M <[email protected]>
Date:   Mon, 18 Oct 2021 15:26:46 -0500

dont animate custom blank gif while zooming

Diffstat:
Msrc/ComputerscareBlank.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/ComputerscareBlank.cpp b/src/ComputerscareBlank.cpp @@ -190,13 +190,14 @@ struct ComputerscareBlank : ComputerscareMenuParamModule { sampleCounter++; zoomCheckCounter++; if (zoomCheckCounter > zoomCheckInterval) { - if (settings::zoom != lastZoom) { + float zoom = APP->scene->rackScroll->getZoom(); + if (zoom != lastZoom) { pauseAnimation = true; } else { pauseAnimation = false; } - lastZoom = settings::zoom; + lastZoom = zoom; zoomCheckCounter = 0; } }