.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@12703 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-01-22 14:05:27 +00:00
parent 4dab41e240
commit e5af80a739

View file

@ -24,7 +24,7 @@ void GLDrawEllipse(const GLContext2D& dd, Pointf center, Sizef radius, Color fil
if(r.cx > 0 && r.cy > 0 && !IsNull(fill_color))
GLDrawPolygons(dd, center, fill, r, fill_color);
r = radius - Sizef(width / 2, width / 2);
if(width && !IsNull(line_color))
if(width && !IsNull(line_color)) {
if(dash.GetCount()) {
GL_TIMING("Ellipse Dash");
Vector<Pointf> line;
@ -38,6 +38,7 @@ void GLDrawEllipse(const GLContext2D& dd, Pointf center, Sizef radius, Color fil
}
else
GLDrawPolylines(dd, center, line, r, width, line_color);
}
}
void GLDrawEllipse(const GLContext2D& dd, Pointf center, Sizef radius, Color fill_color, double width,