Skip to content

Commit c9fccbd

Browse files
committedOct 27, 2013
Feature #8725: drawConvexPolygon() can be faster
On some platforms (e.g. X11), the drawConvexPolygon() function can be faster than the drawPolygon() function. https://qt-project.org/doc/qt-4.8/qpainter.html#drawConvexPolygon
1 parent 775a8e8 commit c9fccbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/symbology-ng/qgssymbollayerv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void QgsFillSymbolLayerV2::_renderPolygon( QPainter* p, const QPolygonF& points,
335335
if ( points.size()<=5 && QgsFeatureRequest::canbeGeneralizedByWndBoundingBox( points, context.layer() ? context.layer()->simplifyDrawingTol() : QgsFeatureRequest::MAPTOPIXEL_THRESHOLD_DEFAULT ) && p->renderHints() & QPainter::Antialiasing )
336336
{
337337
p->setRenderHint( QPainter::Antialiasing, false );
338-
p->drawPolygon( points );
338+
p->drawConvexPolygon( points );
339339
p->setRenderHint( QPainter::Antialiasing, true );
340340
return;
341341
}

0 commit comments

Comments
 (0)
Please sign in to comment.