Skip to content

Commit

Permalink
Improve appearance of raster marker
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Nov 1, 2021
1 parent b2cac9b commit dccaa25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology/qgsmarkersymbollayer.cpp
Expand Up @@ -2972,7 +2972,10 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
if ( context.selected() )
QgsImageOperation::adjustHueSaturation( img, 1.0, context.renderContext().selectionColor(), 1.0, context.renderContext().feedback() );

const bool prevSmoothTransform = p->testRenderHint( QPainter::RenderHint::SmoothPixmapTransform );
p->setRenderHint( QPainter::RenderHint::SmoothPixmapTransform, true );
p->drawImage( -img.width() / 2.0, -img.height() / 2.0, img );
p->setRenderHint( QPainter::RenderHint::SmoothPixmapTransform, prevSmoothTransform );
}
}

Expand Down

0 comments on commit dccaa25

Please sign in to comment.