Skip to content
Snippets Groups Projects
Unverified Commit 08af788a authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1336 from lioncash/antialias

yuzu/util: Antialias game list compatibility pixmaps
parents 240e7569 9dbe9d42
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,9 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color) {
QPixmap circle_pixmap(16, 16);
circle_pixmap.fill(Qt::transparent);
QPainter painter(&circle_pixmap);
painter.setRenderHint(QPainter::Antialiasing);
painter.setPen(color);
painter.setBrush(color);
painter.drawEllipse(0, 0, 15, 15);
painter.drawEllipse({circle_pixmap.width() / 2.0, circle_pixmap.height() / 2.0}, 7.0, 7.0);
return circle_pixmap;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment