Added fit-crop-to-screen Editor button, issue 2706

This commit is contained in:
DrSlony
2015-03-11 15:59:41 +01:00
parent 598161a50d
commit 1addf4bf3c
13 changed files with 570 additions and 7 deletions

View File

@@ -90,6 +90,12 @@ void CropHandler::sizeChanged (int x, int y, int ow, int oh) { // the ipc notif
*/
}
double CropHandler::getFitCropZoom () {
double z1 = (double) wh / cropParams.h;
double z2 = (double) ww / cropParams.w;
return z1<z2 ? z1 : z2;
}
double CropHandler::getFitZoom () {
if (ipc) {