Make RT build without __USE_MISC
and __USE_XOPEN
This commit is contained in:
@@ -456,13 +456,13 @@ void MyFlatCurve::draw ()
|
||||
double x = double(graphX + 1) + innerW * curve.x.at(i); // project (curve.x.at(i), 0, 1, graphW);
|
||||
double y = double(graphY - 1) - innerH * curve.y.at(i); // project (curve.y.at(i), 0, 1, graphH);
|
||||
|
||||
cr->arc (x, y, (double)RADIUS, 0, 2 * M_PI);
|
||||
cr->arc (x, y, (double)RADIUS, 0, 2 * rtengine::RT_PI);
|
||||
cr->fill ();
|
||||
|
||||
if (i == edited_point) {
|
||||
cr->set_source_rgb (1.0, 0.0, 0.0);
|
||||
cr->set_line_width(2.);
|
||||
cr->arc (x, y, RADIUS + 3.5, 0, 2 * M_PI);
|
||||
cr->arc (x, y, RADIUS + 3.5, 0, 2 * rtengine::RT_PI);
|
||||
cr->stroke();
|
||||
cr->set_line_width(1.);
|
||||
}
|
||||
|
Reference in New Issue
Block a user