From 888e639c97e3183a771b63a60201c18d8754fd76 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Thu, 5 Apr 2018 20:31:43 +0200 Subject: [PATCH] Give 'em proper colors! --- src/avtk/clipselector.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/avtk/clipselector.cxx b/src/avtk/clipselector.cxx index eea422f..33ee6d2 100644 --- a/src/avtk/clipselector.cxx +++ b/src/avtk/clipselector.cxx @@ -218,7 +218,8 @@ void ClipSelector::draw() bool toRecord = clips[i].getBeats() <= 0 && clips[i].getBeatsToRecord() > 0; // If there are BeatsToRecord, but no Beats if(strlen(bars)) { - cairo_set_source_rgba( cr, 255 / 255.f, (toRecord) ? 0 : 255 / 255.f, 255 / 255.f , 0.9 ); + if(toRecord) cairo_set_source_rgba(cr, 1.f, 0 / 255.f , 0 / 255.f, 1.f); + else cairo_set_source_rgba( cr, 255 / 255.f, 255 / 255.f, 255 / 255.f , 0.9 ); cairo_move_to( cr, x + clipWidth - 5 - getCairoTextWith(cr, bars), drawY + textHeight - 8); cairo_set_font_size( cr, 11 );