From 4e0002d11a79e4646d15513042996c3df5e35457 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Sat, 14 Apr 2007 00:43:47 +0000 Subject: [PATCH] draw a grey background to a track --- alg/glsequence.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alg/glsequence.cpp b/alg/glsequence.cpp index 5362b21..040f71c 100644 --- a/alg/glsequence.cpp +++ b/alg/glsequence.cpp @@ -353,9 +353,12 @@ void GlSequence::draw_box(GLfloat world_left, GLfloat world_right, void GlSequence::draw_track(GLfloat left, GLfloat right) const { - glColor3fv(color()->get()); // draw main sequence track + glColor3fv(color()->get()); draw_box(left, right, x(), x()+Sequence::size(), height(), y(), 0.0, GL_LINE_LOOP); + + glColor3f(0.8, 0.8, 0.8); + draw_box(left, right, x(), x()+Sequence::size(), height(), y(), 0.0); } void GlSequence::draw_annotations(GLfloat left, GLfloat right) const -- 2.30.2