Home
last modified time | relevance | path

Searched refs:divs (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DNinePatchPeeker.cpp51 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { in scaleDivRange() argument
53 divs[i] = int32_t(divs[i] * scale + 0.5f); in scaleDivRange()
54 if (i > 0 && divs[i] == divs[i - 1]) { in scaleDivRange()
55 divs[i]++; // avoid collisions in scaleDivRange()
59 if (CC_UNLIKELY(divs[count - 1] > maxValue)) { in scaleDivRange()
64 divs[i] = highestAvailable; in scaleDivRange()
65 if (i > 0 && divs[i] <= divs[i-1]) { in scaleDivRange()
67 highestAvailable = divs[i] - 1; in scaleDivRange()