Added fit-crop-to-screen Editor button, issue 2706
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user