Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumechereau committed Apr 7, 2018
1 parent e431f99 commit 4ebf5ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StelMainView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,9 @@ void StelMainView::doScreenshot(void)
fbObj->bind();
QOpenGLPaintDevice fbObjPaintDev(stelScene->width(), stelScene->height());
fbObjPaintDev.setDevicePixelRatio(pixelRatio);
QPainter painter(&fbObjPaintDev);
QPainter painter;
painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
painter.begin(&fbObjPaintDev);
stelScene->render(&painter);
painter.end();
QImage im = fbObj->toImage();
Expand Down

0 comments on commit 4ebf5ae

Please sign in to comment.