]> sourceware.org Git - systemtap.git/commitdiff
restore event square color
authorTim Moore <timoore@redhat.com>
Fri, 4 Dec 2009 16:31:55 +0000 (17:31 +0100)
committerTim Moore <timoore@redhat.com>
Fri, 4 Dec 2009 16:31:55 +0000 (17:31 +0100)
* grapher/GraphStyle.cxx (GraphStyleEvent::draw): set event color in
  inner loop.

grapher/GraphStyle.cxx

index fdc8c4d6e4f840cf5157a8ac51a8793fac2f6fe0..b9429e2a2caf4ba0e8c542a47061a47e4bcc5ce5 100644 (file)
@@ -137,6 +137,8 @@ namespace systemtap
         // size_t dataIndex = ditr - graphData->times.begin();
         double eventHeight = graph->_graphHeight * (graphData->scale / 100.0);
         cr->save();
+        cr->set_source_rgba(graphData->color[0], graphData->color[1],
+                            graphData->color[2], 1.0);
         cr->rectangle((*ditr - left) * horizScale - 1.5 * graph->_lineWidth,
                       eventHeight - 1.5 * graph->_lineWidth,
                       3.0 * graph->_lineWidth, 3.0 * graph->_lineWidth);
This page took 0.025686 seconds and 5 git commands to generate.