diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2007-12-03 20:43:30 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2007-12-03 20:43:30 +0000 |
commit | e9090e24bc2f0585d45ba57ff2f7bf84348d20ed (patch) | |
tree | e86ac5fd4b78a12d7f360f08d83bf0f3caf42a87 /gtk | |
parent | 96e82fb78f0a8b3fd710c111369a9bb95bd1e887 (diff) | |
download | wireshark-e9090e24bc2f0585d45ba57ff2f7bf84348d20ed.tar.gz |
Add some casts to get the windows compiler happy.
svn path=/trunk/; revision=23711
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/io_stat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index a358c407aa..2c738d724c 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -892,7 +892,7 @@ io_stat_draw(io_stat_t *io) if(val>max_y){ prev_y_pos=0; } else { - prev_y_pos=draw_height-1-(val*draw_height)/max_y+top_y_border; + prev_y_pos=(guint32)(draw_height-1-(val*draw_height)/max_y+top_y_border); } for(interval=first_interval;interval<last_interval;interval+=io->interval){ @@ -902,7 +902,7 @@ io_stat_draw(io_stat_t *io) if(val>max_y){ y_pos=0; } else { - y_pos=draw_height-1-(val*draw_height)/max_y+top_y_border; + y_pos=(guint32)(draw_height-1-(val*draw_height)/max_y+top_y_border); } switch(io->graphs[i].plot_style){ @@ -928,7 +928,7 @@ io_stat_draw(io_stat_t *io) gdk_draw_rectangle(io->pixmap, io->graphs[i].gc, TRUE, x_pos-io->pixels_per_tick/2, - draw_height-1-(val*draw_height)/max_y+top_y_border, + (guint32)(draw_height-1-(val*draw_height)/max_y+top_y_border), io->pixels_per_tick, (val*draw_height)/max_y); } @@ -938,7 +938,7 @@ io_stat_draw(io_stat_t *io) gdk_draw_rectangle(io->pixmap, io->graphs[i].gc, TRUE, x_pos-io->pixels_per_tick/2, - draw_height-(val*draw_height)/max_y+top_y_border-io->pixels_per_tick/2, + (guint32)(draw_height-(val*draw_height)/max_y+top_y_border-io->pixels_per_tick/2), io->pixels_per_tick, io->pixels_per_tick); } |