Lines Matching refs:ratio
311 float ratio = fTarget->DeScale((float)(fValue - fMin) / (float)(fMax - fMin));
312 return 6.0 + ratio * (Bounds().Width() - 12.0 - fButtonRect.Width());
386 float ratio = h / (Bounds().Width() - fButtonRect.Width() - 12.0);
387 if (ratio < 0.0)
388 ratio = 0.0;
389 if (ratio > 1.0)
390 ratio = 1.0;
391 ratio = fTarget->Scale(ratio);
392 return fMin + (int32)((fMax - fMin + 1) * ratio);