Explorar o código

Add a comment about dprScale for future historians

DarthSim hai 2 meses
pai
achega
08150dcc16
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      processing/prepare.go

+ 3 - 0
processing/prepare.go

@@ -110,6 +110,9 @@ func calcScale(width, height int, po *options.ProcessingOptions, imgtype imagety
 				dprScale /= minShrink
 			}
 		}
+
+		// The minimum of wshrink and hshrink is the maximum dprScale value
+		// that can be used without enlarging the image.
 		dprScale = math.Min(dprScale, math.Min(wshrink, hshrink))
 	}