From 8b0e73e456b6d53fdb7c659b59f8f3a2513eba35 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Mon, 17 Sep 2018 17:52:36 +0530 Subject: [PATCH] Port #1336 from yuzu see [yuzu-emu/yuzu#1336](https://github.com/yuzu-emu/yuzu/pull/1336) for more details. --- 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 05df65da5..64176f72e 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; }