summaryrefslogtreecommitdiff
path: root/ui/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/sctp_graph_dlg.c')
-rw-r--r--ui/gtk/sctp_graph_dlg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/gtk/sctp_graph_dlg.c b/ui/gtk/sctp_graph_dlg.c
index e61aae5968..c3597067bf 100644
--- a/ui/gtk/sctp_graph_dlg.c
+++ b/ui/gtk/sctp_graph_dlg.c
@@ -534,6 +534,8 @@ draw_tsn_graph(struct sctp_udata *u_data)
guint32 min_secs=0, diff;
gint xvalue, yvalue;
cairo_t *cr = NULL;
+ GdkRGBA black_color = {0.0, 0.0, 0.0, 1.0};
+ GdkRGBA pink_color = {1.0, 0.6, 0.8, 1.0};
if (u_data->dir == 1)
{
@@ -571,7 +573,7 @@ draw_tsn_graph(struct sctp_udata *u_data)
while (tlist)
{
type = ((struct chunk_header *)tlist->data)->type;
- if (type == SCTP_DATA_CHUNK_ID)
+ if (type == SCTP_DATA_CHUNK_ID || type == SCTP_FORWARD_TSN_CHUNK_ID)
tsnumber = g_ntohl(((struct data_chunk_header *)tlist->data)->tsn);
if (tsnumber >= min_tsn && tsnumber <= max_tsn && tsn->secs >= min_secs)
{
@@ -591,6 +593,10 @@ draw_tsn_graph(struct sctp_udata *u_data)
#else
cr = gdk_cairo_create (u_data->io->pixmap);
#endif
+ if (type == SCTP_DATA_CHUNK_ID)
+ gdk_cairo_set_source_rgba (cr, &black_color);
+ else
+ gdk_cairo_set_source_rgba (cr, &pink_color);
cairo_arc(cr,
xvalue,
yvalue,