diff options
author | Anders Broman <anders.broman@ericsson.com> | 2006-01-24 20:20:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2006-01-24 20:20:33 +0000 |
commit | 3aa3b4d8b32333d55d68438d9b536f8d9cc10915 (patch) | |
tree | db9234dad81f70aa0415859082c9809986753ccb /gtk | |
parent | 3f3aae16813ddd4e84377bfd2212292cb3151c21 (diff) | |
download | wireshark-3aa3b4d8b32333d55d68438d9b536f8d9cc10915.tar.gz |
Replace round() with floor(), I don't know if it's the right thing to do but at least it compiles on Windows again.
svn path=/trunk/; revision=17094
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/sctp_byte_graph_dlg.c | 2 | ||||
-rw-r--r-- | gtk/sctp_graph_dlg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/sctp_byte_graph_dlg.c b/gtk/sctp_byte_graph_dlg.c index 3a08bde64f..29c4f2af28 100644 --- a/gtk/sctp_byte_graph_dlg.c +++ b/gtk/sctp_byte_graph_dlg.c @@ -932,7 +932,7 @@ on_button_release (GtkWidget *widget _U_, GdkEventButton *event, struct sctp_uda else { x_value = ((event->x-LEFT_BORDER-u_data->io->offset) * ((u_data->io->x2_tmp_sec+u_data->io->x2_tmp_usec/1000000.0)-(u_data->io->x1_tmp_sec+u_data->io->x1_tmp_usec/1000000.0)) / (u_data->io->pixmap_width-LEFT_BORDER-u_data->io->offset))+u_data->io->x1_tmp_sec+u_data->io->x1_tmp_usec/1000000.0; - y_value = round((u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset-event->y) * (max_tsn - min_tsn) / (u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)) + min_tsn; + y_value = floor((u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset-event->y) * (max_tsn - min_tsn) / (u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)) + min_tsn; text_color = u_data->io->draw_area->style->black_gc; g_snprintf(label_string, 30, "(%.6lf, %u)", x_value, y_value); label_set = TRUE; diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index 62e661ed23..d87e37cd42 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -950,7 +950,7 @@ on_button_release (GtkWidget *widget _U_, GdkEventButton *event, struct sctp_uda else { x_value = ((event->x-LEFT_BORDER-u_data->io->offset) * ((u_data->io->x2_tmp_sec+u_data->io->x2_tmp_usec/1000000.0)-(u_data->io->x1_tmp_sec+u_data->io->x1_tmp_usec/1000000.0)) / (u_data->io->pixmap_width-LEFT_BORDER-u_data->io->offset))+u_data->io->x1_tmp_sec+u_data->io->x1_tmp_usec/1000000.0; - y_value = round((u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset-event->y) * (max_tsn - min_tsn) / (u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)) + min_tsn; + y_value = floor((u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset-event->y) * (max_tsn - min_tsn) / (u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)) + min_tsn; text_color = u_data->io->draw_area->style->black_gc; g_snprintf(label_string, 30, "(%.6lf, %u)", x_value, y_value); label_set = TRUE; |