From 1f97bdc27aa1caed69e5be96ea00eea6e773f342 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 17 Dec 2003 22:11:43 +0000 Subject: removed some more MSVC warnings (type casting) svn path=/trunk/; revision=9326 --- gtk/tcp_graph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/tcp_graph.c') diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index c3b3b06dcc..91046a687d 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -3,7 +3,7 @@ * By Pavel Mores * Win32 port: rwh@unifiedtech.com * - * $Id: tcp_graph.c,v 1.38 2003/12/09 23:45:34 obiot Exp $ + * $Id: tcp_graph.c,v 1.39 2003/12/17 22:11:43 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -2221,7 +2221,7 @@ static void v_axis_pixmap_draw (struct axis *axis) axis->p.width, axis->p.height); /* axis */ gdk_draw_line (axis->pixmap[not_disp], g->fg_gc, axis->p.width - 1, - (axis->p.height-axis->s.height)/2.0, axis->s.width - 1, + (gint) ((axis->p.height-axis->s.height)/2.0), axis->s.width - 1, axis->p.height); offset = g->wp.y + (-g->geom.y); @@ -2328,7 +2328,7 @@ static void h_axis_pixmap_draw (struct axis *axis) axis->p.width, axis->p.height); /* axis */ gdk_draw_line (axis->pixmap[not_disp], g->fg_gc, 0, 0, - axis->s.width + (axis->p.width-axis->s.width)/2.0, 0); + (gint) (axis->s.width + (axis->p.width-axis->s.width)/2.0), 0); offset = g->wp.x - g->geom.x; fl = floor (axis->min / axis->major) * axis->major; @@ -3003,7 +3003,7 @@ static gint button_press_event (GtkWidget *widget, GdkEventButton *event) axis_display (g->x_axis); update_zoom_spins (g); if (g->cross.draw) - cross_draw (g, event->x, event->y); + cross_draw (g, (int) event->x, (int) event->y); #ifndef WIN32 } else if (event->button == 1) { graph_select_segment (g, (int )event->x, (int )event->y); -- cgit v1.2.3