diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2009-08-21 20:10:51 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2009-08-21 20:10:51 +0000 |
commit | cc11620041f8c2c13e8d74064de6ac5998547cda (patch) | |
tree | fc4b451a34319f17b5deda4456aeeabbd0fdca2c /gtk/sctp_graph_dlg.c | |
parent | 9661baf23767c48085c6d94010cf445a6120ef59 (diff) | |
download | wireshark-cc11620041f8c2c13e8d74064de6ac5998547cda.tar.gz wireshark-cc11620041f8c2c13e8d74064de6ac5998547cda.tar.bz2 wireshark-cc11620041f8c2c13e8d74064de6ac5998547cda.zip |
From Irene Ruengeler: Fix two bugs regarding plotted TSNs reported by
Christian Constantin.
svn path=/trunk/; revision=29498
Diffstat (limited to 'gtk/sctp_graph_dlg.c')
-rw-r--r-- | gtk/sctp_graph_dlg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index 051d89d5c4..fda7045bbe 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -226,7 +226,7 @@ static void draw_sack_graph(struct sctp_udata *u_data) yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE-u_data->io->offset-((SUB_32(j+tsnumber,min_tsn))*u_data->io->y_interval)); if (xvalue >= LEFT_BORDER+u_data->io->offset && xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset && - yvalue >= TOP_BORDER-u_data->io->offset && + yvalue >= TOP_BORDER-u_data->io->offset-5 && yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset) gdk_draw_arc(u_data->io->pixmap,green_gc,TRUE, xvalue, @@ -249,7 +249,7 @@ static void draw_sack_graph(struct sctp_udata *u_data) yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE -u_data->io->offset-((SUB_32(tsnumber,min_tsn))*u_data->io->y_interval)); if (xvalue >= LEFT_BORDER+u_data->io->offset && xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset && - yvalue >= TOP_BORDER-u_data->io->offset && + yvalue >= TOP_BORDER-u_data->io->offset-5 && yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset) gdk_draw_arc(u_data->io->pixmap,red_gc,TRUE, xvalue, @@ -368,7 +368,7 @@ static void draw_nr_sack_graph(struct sctp_udata *u_data) yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE-u_data->io->offset-((SUB_32(j+tsnumber,min_tsn))*u_data->io->y_interval)); if (xvalue >= LEFT_BORDER+u_data->io->offset && xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset && - yvalue >= TOP_BORDER-u_data->io->offset && + yvalue >= TOP_BORDER-u_data->io->offset-5 && yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset) { /* Check if this is an GAP ACK or NR GAP ACK */ @@ -418,7 +418,7 @@ static void draw_nr_sack_graph(struct sctp_udata *u_data) yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE -u_data->io->offset-((SUB_32(tsnumber,min_tsn))*u_data->io->y_interval)); if (xvalue >= LEFT_BORDER+u_data->io->offset && xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset && - yvalue >= TOP_BORDER-u_data->io->offset && + yvalue >= TOP_BORDER-u_data->io->offset-5 && yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset) gdk_draw_arc(u_data->io->pixmap,red_gc,TRUE, xvalue, @@ -493,7 +493,7 @@ static void draw_tsn_graph(struct sctp_udata *u_data) yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE-u_data->io->offset-((SUB_32(tsnumber,min_tsn))*u_data->io->y_interval)); if (xvalue >= LEFT_BORDER+u_data->io->offset && xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset && - yvalue >= TOP_BORDER-u_data->io->offset && + yvalue >= TOP_BORDER-u_data->io->offset-5 && yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset) gdk_draw_arc(u_data->io->pixmap,u_data->io->draw_area->style->black_gc,TRUE, xvalue, |