Port #1336 from yuzu

see [yuzu-emu/yuzu#1336](https://github.com/yuzu-emu/yuzu/pull/1336) for more details.
This commit is contained in:
Vamsi Krishna 2018-09-17 17:52:36 +05:30 committed by GitHub
parent 2ba62ec196
commit 8b0e73e456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,9 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color) {
QPixmap circle_pixmap(16, 16); QPixmap circle_pixmap(16, 16);
circle_pixmap.fill(Qt::transparent); circle_pixmap.fill(Qt::transparent);
QPainter painter(&circle_pixmap); QPainter painter(&circle_pixmap);
painter.setRenderHint(QPainter::Antialiasing);
painter.setPen(color); painter.setPen(color);
painter.setBrush(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; return circle_pixmap;
} }