mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 20:20:44 +00:00
Fixed Overlay/Flag Span colors quads
This commit is contained in:
parent
6ba03a4e45
commit
8172faadd8
@ -155,8 +155,7 @@ void gFlagsLine::paint(gGraph & w,int left, int top, int width, int height)
|
|||||||
} else if (m_flt==FT_Span) {
|
} else if (m_flt==FT_Span) {
|
||||||
x2=(Y-minx)*xmult+left;
|
x2=(Y-minx)*xmult+left;
|
||||||
//w1=x2-x1;
|
//w1=x2-x1;
|
||||||
quads->add(x1,bartop,x1,bottom);
|
quads->add(x1,bartop,x1,bottom,x2,bottom,x2,bartop,m_flag_color);
|
||||||
quads->add(x2,bottom,x2,bartop);
|
|
||||||
if (quads->full()) { verts_exceeded=true; break; }
|
if (quads->full()) { verts_exceeded=true; break; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,8 +78,7 @@ void gLineOverlayBar::paint(gGraph & w, int left, int topp, int width, int heigh
|
|||||||
if (x2<left) x2=left;
|
if (x2<left) x2=left;
|
||||||
if (x1>width+left) x1=width+left;
|
if (x1>width+left) x1=width+left;
|
||||||
//double w1=x2-x1;
|
//double w1=x2-x1;
|
||||||
quads->add(x1,start_py,x2,start_py);
|
quads->add(x1,start_py,x2,start_py,x2,start_py+height,x1,start_py+height,m_flag_color);
|
||||||
quads->add(x2,start_py+height,x1,start_py+height);
|
|
||||||
if (quads->full()) { verts_exceeded=true; break; }
|
if (quads->full()) { verts_exceeded=true; break; }
|
||||||
} else if (m_flt==FT_Dot) {
|
} else if (m_flt==FT_Dot) {
|
||||||
if ((pref["AlwaysShowOverlayBars"].toInt()==0) || (xx<3600000)) {
|
if ((pref["AlwaysShowOverlayBars"].toInt()==0) || (xx<3600000)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user