[Summary] Temporarily set unlimited samples per pixel for temporal wave zoom.

This commit is contained in:
VKamyshniy 2014-10-30 01:16:29 +02:00
parent 4f59429ad5
commit 16e3983e11
2 changed files with 5 additions and 1 deletions

View file

@ -19,6 +19,8 @@
/* Note: public Editor methods are documented in public_editor.h */
#include "product_definition.h"
#include <stdint.h>
#include <unistd.h>
#include <cstdlib>
@ -4353,10 +4355,11 @@ Editor::set_samples_per_pixel (framecnt_t spp)
/* if the zoom level is greater than what you'd get trying to display 3
* days of audio on a really big screen, then it's too big.
*/
#if !UNLIMITED_TEMPORAL_ZOOM // TRACKS needs no limitations
if (spp * lots_of_pixels > three_days) {
return;
}
#endif
samples_per_pixel = spp;
update_horizontal_adjustment_limits();