diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 4ceac4b03b..6f7085fecd 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -19,6 +19,8 @@ /* Note: public Editor methods are documented in public_editor.h */ +#include "product_definition.h" + #include #include #include @@ -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(); diff --git a/gtk2_ardour/product_definition.h b/gtk2_ardour/product_definition.h index b636f9bda7..4c382e8a74 100644 --- a/gtk2_ardour/product_definition.h +++ b/gtk2_ardour/product_definition.h @@ -21,5 +21,6 @@ #define __ardour_gtk_product_definition_h__ #define APPLICATION_NAME "Tracks Live" +#define UNLIMITED_TEMPORAL_ZOOM 1 #endif /* __ardour_gtk_product_definition_h__ */