| 231 iy += fabs(((float) dely / (float) delx)) * (float) ((dely < 0) ? -1.0 : 1.0); |
231 iy += fabs(((float) dely / (float) delx)) * (float) ((dely < 0) ? -1.0 : 1.0); |
| 232 |
232 |
| 233 /* add the interpolated point */ |
233 /* add the interpolated point */ |
| 234 new_point_p->x = ix; |
234 new_point_p->x = ix; |
| 235 new_point_p->y = iy; |
235 new_point_p->y = iy; |
| 236 g_slist_append (metrics->pointList, new_point_p); |
236 metrics->pointList = g_slist_append (metrics->pointList, new_point_p); |
| 237 |
237 |
| 238 /* update metrics */ |
238 /* update metrics */ |
| 239 if (((gint) ix) < metrics->min_x) metrics->min_x = (gint) ix; |
239 if (((gint) ix) < metrics->min_x) metrics->min_x = (gint) ix; |
| 240 if (((gint) ix) > metrics->max_x) metrics->max_x = (gint) ix; |
240 if (((gint) ix) > metrics->max_x) metrics->max_x = (gint) ix; |
| 241 if (((gint) iy) < metrics->min_y) metrics->min_y = (gint) iy; |
241 if (((gint) iy) < metrics->min_y) metrics->min_y = (gint) iy; |
| 255 ix += fabs(((float) delx / (float) dely)) * (float) ((delx < 0) ? -1.0 : 1.0); |
255 ix += fabs(((float) delx / (float) dely)) * (float) ((delx < 0) ? -1.0 : 1.0); |
| 256 |
256 |
| 257 /* add the interpolated point */ |
257 /* add the interpolated point */ |
| 258 new_point_p->y = iy; |
258 new_point_p->y = iy; |
| 259 new_point_p->x = ix; |
259 new_point_p->x = ix; |
| 260 g_slist_append(metrics->pointList, new_point_p); |
260 metrics->pointList = g_slist_append(metrics->pointList, new_point_p); |
| 261 |
261 |
| 262 /* update metrics */ |
262 /* update metrics */ |
| 263 if (((gint) ix) < metrics->min_x) metrics->min_x = (gint) ix; |
263 if (((gint) ix) < metrics->min_x) metrics->min_x = (gint) ix; |
| 264 if (((gint) ix) > metrics->max_x) metrics->max_x = (gint) ix; |
264 if (((gint) ix) > metrics->max_x) metrics->max_x = (gint) ix; |
| 265 if (((gint) iy) < metrics->min_y) metrics->min_y = (gint) iy; |
265 if (((gint) iy) < metrics->min_y) metrics->min_y = (gint) iy; |