citra-emu
/
citra
Archived
1
0
Fork 0

Antialias game list compatibility pixmaps

This commit is contained in:
CaptV0rt3x 2018-09-17 19:00:28 +05:30
parent 2ba62ec196
commit 48fafaba3e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}