From 8172faadd81f492c93aaa1784c63be1df6bf525a Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 23 Sep 2011 15:40:41 +1000 Subject: [PATCH] Fixed Overlay/Flag Span colors quads --- Graphs/gFlagsLine.cpp | 3 +-- Graphs/gLineOverlay.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Graphs/gFlagsLine.cpp b/Graphs/gFlagsLine.cpp index 82d1a321..92343807 100644 --- a/Graphs/gFlagsLine.cpp +++ b/Graphs/gFlagsLine.cpp @@ -155,8 +155,7 @@ void gFlagsLine::paint(gGraph & w,int left, int top, int width, int height) } else if (m_flt==FT_Span) { x2=(Y-minx)*xmult+left; //w1=x2-x1; - quads->add(x1,bartop,x1,bottom); - quads->add(x2,bottom,x2,bartop); + quads->add(x1,bartop,x1,bottom,x2,bottom,x2,bartop,m_flag_color); if (quads->full()) { verts_exceeded=true; break; } } } diff --git a/Graphs/gLineOverlay.cpp b/Graphs/gLineOverlay.cpp index 5ab6aa87..6abdceb9 100644 --- a/Graphs/gLineOverlay.cpp +++ b/Graphs/gLineOverlay.cpp @@ -78,8 +78,7 @@ void gLineOverlayBar::paint(gGraph & w, int left, int topp, int width, int heigh if (x2width+left) x1=width+left; //double w1=x2-x1; - quads->add(x1,start_py,x2,start_py); - quads->add(x2,start_py+height,x1,start_py+height); + quads->add(x1,start_py,x2,start_py,x2,start_py+height,x1,start_py+height,m_flag_color); if (quads->full()) { verts_exceeded=true; break; } } else if (m_flt==FT_Dot) { if ((pref["AlwaysShowOverlayBars"].toInt()==0) || (xx<3600000)) {