Lines Matching refs:i_before
155 int i_before = selected; in add_stop_data() local
156 if ( i_before == -1 ) in add_stop_data()
157 i_before = stops.size() - 1; in add_stop_data()
159 if ( i_before == stops.size() - 1 ) in add_stop_data()
161 if ( stops[i_before].first < 1 ) in add_stop_data()
163 color = stops[i_before].second; in add_stop_data()
164 pos = (stops[i_before].first + 1) / 2; in add_stop_data()
168 i_before--; in add_stop_data()
171 index = i_before + 1; in add_stop_data()
172 pos = (stops[i_before].first + stops[i_before+1].first) / 2; in add_stop_data()
173 color = blendColors(stops[i_before].second, stops[i_before+1].second, 0.5); in add_stop_data()