Clarify some comments
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 27 Dec 2010 22:24:07 +0000 (22:24 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 27 Dec 2010 22:24:07 +0000 (22:24 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35279 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/rtp_player.c

index 6879479d58085f9922dc3ab78120f5e126398910..7cf28304d1746b26f02d37faf50d40ce3395a6d5 100644 (file)
@@ -1351,6 +1351,7 @@ static void channel_draw(rtp_channel_info_t* rci)
                                        0,
                                        small_layout);
                        } else {
+                               /* Draw a graphical representation of the sample */
                                gdk_draw_line(rci->pixmap, gc,
                                        i,
                                        (gint)(( (0x7FFF+min) * (rci->draw_area->allocation.height-HEIGHT_TIME_LABEL))/0xFFFF),
@@ -1358,7 +1359,9 @@ static void channel_draw(rtp_channel_info_t* rci)
                                        (gint)(( (0x7FFF+max) * (rci->draw_area->allocation.height-HEIGHT_TIME_LABEL))/0xFFFF));
                        }
 
-                       /*draw the time label and grid */
+                       /* Draw the x-axis (seconds since beginning of packet flow for this call) */
+
+                       /* Draw tick mark and put a number for each whole second */
                        if ( !((i*MULT)%(SAMPLE_RATE)) ) {
                                gdk_draw_line(rci->pixmap, rci->draw_area->style->black_gc,
                                        (int) (i - offset),
@@ -1375,7 +1378,8 @@ static void channel_draw(rtp_channel_info_t* rci)
                                        (int) (i - offset - label_width/2),
                                        rci->draw_area->allocation.height - label_height,
                                        small_layout);
-                       /* draw the 1/2 sec grid */
+
+                       /* Draw only a tick mark for half second intervals */
                        } else if ( !((i*MULT)%(SAMPLE_RATE/2)) ) {
                                gdk_draw_line(rci->pixmap, rci->draw_area->style->black_gc,
                                        (int) (i - offset),