From 8d6779975df8f3bef98ad2b2ae4ce310a543f781 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 4 Dec 2009 17:31:55 +0100 Subject: restore event square color * grapher/GraphStyle.cxx (GraphStyleEvent::draw): set event color in inner loop. --- grapher/GraphStyle.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grapher/GraphStyle.cxx') diff --git a/grapher/GraphStyle.cxx b/grapher/GraphStyle.cxx index fdc8c4d6..b9429e2a 100644 --- a/grapher/GraphStyle.cxx +++ b/grapher/GraphStyle.cxx @@ -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); -- cgit