comparison framework/MainWindowBase.cpp @ 715:ec8f21a20fa7

Use updated snap api
author Chris Cannam
date Thu, 17 Oct 2019 11:13:11 +0100
parents fe268c16ae28
children 55f317633b93
comparison
equal deleted inserted replaced
714:fe268c16ae28 715:ec8f21a20fa7
3387 sv_frame_t pframe = pane->alignFromReference(frame); 3387 sv_frame_t pframe = pane->alignFromReference(frame);
3388 int resolution = 0; 3388 int resolution = 0;
3389 bool success = false; 3389 bool success = false;
3390 3390
3391 while (layer->snapToFeatureFrame(pane, pframe, resolution, 3391 while (layer->snapToFeatureFrame(pane, pframe, resolution,
3392 Layer::SnapRight)) { 3392 Layer::SnapRight, -1)) {
3393 if (pane->alignToReference(pframe) > playbackFrame) { 3393 if (pane->alignToReference(pframe) > playbackFrame) {
3394 success = true; 3394 success = true;
3395 break; 3395 break;
3396 } else { 3396 } else {
3397 ++pframe; 3397 ++pframe;
3513 sv_frame_t pframe = pane->alignFromReference(frame); 3513 sv_frame_t pframe = pane->alignFromReference(frame);
3514 int resolution = 0; 3514 int resolution = 0;
3515 bool success = false; 3515 bool success = false;
3516 3516
3517 while (layer->snapToFeatureFrame(pane, pframe, resolution, 3517 while (layer->snapToFeatureFrame(pane, pframe, resolution,
3518 Layer::SnapLeft)) { 3518 Layer::SnapLeft, -1)) {
3519 if (pane->alignToReference(pframe) < playbackFrame || 3519 if (pane->alignToReference(pframe) < playbackFrame ||
3520 pframe <= 0) { 3520 pframe <= 0) {
3521 success = true; 3521 success = true;
3522 break; 3522 break;
3523 } else { 3523 } else {