Skip to content

Commit c2e9653

Browse files
author
timlinux
committedJan 12, 2006
Map canvas is now antialieased.....oooer....
git-svn-id: http://svn.osgeo.org/qgis/trunk@4655 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 295cd63 commit c2e9653

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgsmapcanvas.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ void QgsMapCanvas::render(QPaintDevice * theQPaintDevice)
554554
{
555555
mCanvasProperties->pmCanvas->fill(mCanvasProperties->bgColor);
556556
paint->begin(mCanvasProperties->pmCanvas);
557+
paint->setRenderHint(QPainter::Antialiasing);
557558
myHeight=height();
558559
myWidth=width();
559560
}
@@ -574,6 +575,7 @@ void QgsMapCanvas::render(QPaintDevice * theQPaintDevice)
574575
}
575576
//initialise the painter
576577
paint->begin(theQPaintDevice);
578+
paint->setRenderHint(QPainter::Antialiasing);
577579
}
578580
// hardwire the current extent for projection testing
579581
// mCanvasProperties->currentExtent.setXmin(-156.00);

0 commit comments

Comments
 (0)
Please sign in to comment.