Lines Matching defs:diff
941 int diff = 0; /* Extra pixels needed to add to the layout. */
948 diff = size - slotPtr[slots-1].offset;
954 if (diff == 0) {
968 return(diff > 0 ? diff/2 : 0);
976 if (diff > 0) {
979 slotPtr[slot].offset += diff * weight / totalWeight;
1025 while (diff < 0) {
1049 newDiff = diff;
1052 int maxDiff; /* max diff that would cause
1075 diff -= newDiff;
1606 int diff = layoutPtr[slot].maxOffset - layoutPtr[slot].minOffset;
1609 (diff*totalWeight/weight) < (have-need)) {
1610 have = diff * totalWeight / weight + need;