added preferences to control the behaviour of the crop tool

This commit is contained in:
Alberto Griggio
2018-01-03 15:44:34 +01:00
parent 0ac3bafbca
commit 8168611c23
9 changed files with 96 additions and 10 deletions

View File

@@ -86,7 +86,18 @@ void PreviewWindow::updatePreviewImage ()
cc->fill();
if (previewHandler->getCropParams().enabled) {
drawCrop (cc, imgX, imgY, imgW, imgH, 0, 0, zoom, previewHandler->getCropParams(), true, false);
rtengine::CropParams cparams = previewHandler->getCropParams();
switch (options.cropGuides) {
case Options::CROP_GUIDE_NONE:
cparams.guide = "None";
break;
case Options::CROP_GUIDE_FRAME:
cparams.guide = "Frame";
break;
default:
break;
}
drawCrop (cc, imgX, imgY, imgW, imgH, 0, 0, zoom, cparams, true, false);
}
}
}