1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-26 15:03:47 +01:00

Put the scroll-beyond-zero flag in just one place, ViewInfo

This commit is contained in:
Paul Licameli
2015-08-26 23:17:20 -04:00
parent d635ff36c4
commit 6c6fc360ca
7 changed files with 21 additions and 15 deletions

View File

@@ -9,6 +9,7 @@ Paul Licameli
**********************************************************************/
#include "ViewInfo.h"
#include "Experimental.h"
#include <algorithm>
@@ -110,7 +111,18 @@ ViewInfo::ViewInfo(double start, double screenDuration, double pixelsPerSecond)
, sbarScale(1.0)
, scrollStep(16)
, bUpdateTrackIndicator(true)
, bScrollBeyondZero(false)
{
UpdatePrefs();
}
void ViewInfo::UpdatePrefs()
{
ZoomInfo::UpdatePrefs();
#ifdef EXPERIMENTAL_SCROLLING_LIMITS
gPrefs->Read(wxT("/GUI/ScrollBeyondZero"), &bScrollBeyondZero, false);
#endif
}
void ViewInfo::SetBeforeScreenWidth(wxInt64 beforeWidth, wxInt64 screenWidth, double lowerBoundTime)