return;
setQPainterPen(col, ls, lw);
+ setRenderHint(Antialiasing, x1 != x2 && y1 != y2);
drawLine(x1, y1, x2, y2);
+ setRenderHint(Antialiasing, false);
}
// Must use new as np is not known at compile time.
boost::scoped_array<QPoint> points(new QPoint[np]);
+ bool antialias = false;
for (int i = 0; i < np; ++i) {
points[i].setX(xp[i]);
points[i].setY(yp[i]);
+ if(i != 0)
+ antialias |= xp[i-1] != xp[i] && yp[i-1] != yp[i];
}
if (!isDrawingEnabled())
return;
setQPainterPen(col, ls, lw);
+ setRenderHint(Antialiasing, antialias);
drawPolyline(points.get(), np);
+ setRenderHint(Antialiasing, false);
}
// LyX usings 1/64ths degree, Qt usings 1/16th
setQPainterPen(col);
+ setRenderHint(Antialiasing, true);
drawArc(x, y, w, h, a1 / 4, a2 / 4);
+ setRenderHint(Antialiasing, false);
}
} // namespace frontend
} // namespace lyx
+