From 48fafaba3eb1dcbca8f43be49c5ac61c0a55e821 Mon Sep 17 00:00:00 2001 From: CaptV0rt3x Date: Mon, 17 Sep 2018 19:00:28 +0530 Subject: [PATCH] Antialias game list compatibility pixmaps --- src/citra_qt/util/util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/citra_qt/util/util.cpp b/src/citra_qt/util/util.cpp index 05df65da55..64176f72e9 100644 --- a/src/citra_qt/util/util.cpp +++ b/src/citra_qt/util/util.cpp @@ -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; }