summaryrefslogtreecommitdiffstats
path: root/grapher/GraphStyle.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-04 17:31:55 +0100
committerTim Moore <timoore@redhat.com>2009-12-04 17:31:55 +0100
commit8d6779975df8f3bef98ad2b2ae4ce310a543f781 (patch)
tree0bd17af8eaa6762e678de4ffd25c94447a0942cd /grapher/GraphStyle.cxx
parent2ebfefae53de7d6c001554a159dbcc8edfac9ec7 (diff)
downloadsystemtap-steved-8d6779975df8f3bef98ad2b2ae4ce310a543f781.tar.gz
systemtap-steved-8d6779975df8f3bef98ad2b2ae4ce310a543f781.tar.xz
systemtap-steved-8d6779975df8f3bef98ad2b2ae4ce310a543f781.zip
restore event square color
* grapher/GraphStyle.cxx (GraphStyleEvent::draw): set event color in inner loop.
Diffstat (limited to 'grapher/GraphStyle.cxx')
-rw-r--r--grapher/GraphStyle.cxx2
1 files changed, 2 insertions, 0 deletions
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);