summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-25 10:09:02 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-25 10:09:36 (GMT)
commit41fc26a668080126ec0ce9349ff22195c26dc5b4 (patch)
tree6eb0efc171b9da4c4fde63af0108e726544a52d2
parent7bad74209ca2d398b854bbf471313afb4b41f7a0 (diff)
Take the antialiasing on/off more seriously!
-rw-r--r--kstars/skyqpainter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kstars/skyqpainter.cpp b/kstars/skyqpainter.cpp
index b2da73f..3e6cd41 100644
--- a/kstars/skyqpainter.cpp
+++ b/kstars/skyqpainter.cpp
@@ -721,9 +721,12 @@ void SkyQPainter::drawDeepSkySymbol(const QPointF &pos, int type, float size, fl
drawText( QRect(idx1, idy1, isize, int(e*size)), Qt::AlignCenter, qMark );
}
restore(); //reset coordinate system (and font?)
-
- } else if ( size>0. ) {
- drawPoint( QPointF(x, y) );
+ }
+ else if ( size>0. ) {
+ if ( Options::useAntialias() )
+ drawPoint( QPointF(x, y) );
+ else
+ drawPoint( QPoint( x, y ) );
}
}