Lines Matching defs:dwidth
71 int dwidth = *widthp, dheight = *heightp;
121 if (dwidth < minWidth)
122 dwidth = minWidth;
126 if (dwidth > maxWidth)
127 dwidth = maxWidth;
134 dwidth = ((dwidth - baseWidth) / xinc * xinc) + baseWidth;
144 * minAspectX dwidth maxAspectX
151 * minAspectX * dheight > minAspectY * dwidth
152 * maxAspectX * dheight < maxAspectY * dwidth
158 if (hints.min_aspect.x * dheight > hints.min_aspect.y * dwidth)
160 delta = makemult(hints.min_aspect.x * dheight / hints.min_aspect.y - dwidth, xinc);
161 if (dwidth + delta <= maxWidth)
162 dwidth += delta;
165 delta = makemult(dheight - dwidth*hints.min_aspect.y/hints.min_aspect.x, yinc);
171 if (hints.max_aspect.x * dheight < hints.max_aspect.y * dwidth)
173 delta = makemult(dwidth * hints.max_aspect.y / hints.max_aspect.x - dheight, yinc);
178 delta = makemult(dwidth - hints.max_aspect.x*dheight/hints.max_aspect.y, xinc);
179 if (dwidth - delta >= minWidth)
180 dwidth -= delta;
186 *widthp = dwidth;