Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 2011:b184e71f880d zoom
ZoomLevel fixes
author | Chris Cannam |
---|---|
date | Thu, 20 Sep 2018 11:45:55 +0100 |
parents | 5d3ef2c450cc |
children | 262c656ec78f |
comparison
equal
deleted
inserted
replaced
2010:b1e091bb126c | 2011:b184e71f880d |
---|---|
3864 Pane *pane = command->getPane(); | 3864 Pane *pane = command->getPane(); |
3865 | 3865 |
3866 if (configuration.layer == LayerFactory::Spectrum) { | 3866 if (configuration.layer == LayerFactory::Spectrum) { |
3867 pane->setPlaybackFollow(PlaybackScrollContinuous); | 3867 pane->setPlaybackFollow(PlaybackScrollContinuous); |
3868 pane->setFollowGlobalZoom(false); | 3868 pane->setFollowGlobalZoom(false); |
3869 pane->setZoomLevel(512); | 3869 pane->setZoomLevel(ZoomLevel(ZoomLevel::FramesPerPixel, 512)); |
3870 } | 3870 } |
3871 | 3871 |
3872 if (configuration.layer != LayerFactory::TimeRuler && | 3872 if (configuration.layer != LayerFactory::TimeRuler && |
3873 configuration.layer != LayerFactory::Spectrum) { | 3873 configuration.layer != LayerFactory::Spectrum) { |
3874 | 3874 |