Home | History | Annotate | Download | only in graphics

Lines Matching refs:divs

91 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) {
93 divs[i] = int32_t(divs[i] * scale + 0.5f);
94 if (i > 0 && divs[i] == divs[i - 1]) {
95 divs[i]++; // avoid collisions
99 if (CC_UNLIKELY(divs[count - 1] > maxValue)) {
100 // if the collision avoidance above put some divs outside the bounds of the bitmap,
101 // slide outer stretchable divs inward to stay within bounds
104 divs[i] = highestAvailable;
105 if (i > 0 && divs[i] <= divs[i-1]){
107 highestAvailable = divs[i] - 1;