#define MAX_PATH_LEN 256
+#define STATE_LINE_WIDTH 4
+#define COLLISION_POSITION(height) (((height - STATE_LINE_WIDTH)/2) -3)
extern GSList *g_legend_list;
static inline PropertiesLine prepare_s_e_line(LttvProcessState *process)
{
PropertiesLine prop_line;
- prop_line.line_width = 5;
+ prop_line.line_width = STATE_LINE_WIDTH;
prop_line.style = GDK_LINE_SOLID;
prop_line.y = MIDDLE;
//GdkColormap *colormap = gdk_colormap_get_system();
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
} else {
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
/* jump */
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
} else {
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
/* jump */
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
} else {
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
/* jump */
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
} else {
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
/* jump */
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
} else {
gdk_draw_point(hashed_process_data->pixmap,
drawing->gc,
x,
- (hashed_process_data->height/2)-3);
+ COLLISION_POSITION(hashed_process_data->height));
hashed_process_data->x.middle_marked = TRUE;
}
/* jump */