Simplified y-positions for FBAR and DOT to ensure out-of-graph values are
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Dec 2007 00:36:39 +0000 (00:36 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Dec 2007 00:36:39 +0000 (00:36 +0000)
drawn as they should be.  I hope this is the last fix this time...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23729 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/io_stat.c

index c0be4afc183b54c794f2119283e4285d2ad5fbb9..c7bcb8e0c50f23adb59b432f8e86157e26321d7a 100644 (file)
@@ -928,9 +928,9 @@ io_stat_draw(io_stat_t *io)
                                        gdk_draw_rectangle(io->pixmap,
                                                io->graphs[i].gc, TRUE,
                                                x_pos-io->pixels_per_tick/2,
-                                               (guint32)(draw_height-1-(val*draw_height)/max_y+top_y_border),
+                                               y_pos,
                                                io->pixels_per_tick,
-                                               (guint32)((val*draw_height)/max_y));
+                                               draw_height-1+top_y_border-y_pos);
                                }
                                break;
                        case PLOT_STYLE_DOT:
@@ -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,
-                                               (guint32)(draw_height-(val*draw_height)/max_y+top_y_border-io->pixels_per_tick/2),
+                                               y_pos-io->pixels_per_tick/2,
                                                io->pixels_per_tick,
                                                io->pixels_per_tick);
                                }