mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
[Summary] Temporarily set unlimited samples per pixel for temporal wave zoom.
This commit is contained in:
parent
4f59429ad5
commit
16e3983e11
2 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue