summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-17 11:57:23 +0200
committerLioncash <mathew1800@gmail.com>2018-09-17 12:01:14 +0200
commit9dbe9d42914adc007cab42fd1c73f5f52313ec71 (patch)
tree0702c7fecbb6d6f0bb641089bc713569033d08bb
parentMerge pull request #1308 from valentinvanelslande/ipc (diff)
downloadyuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar.gz
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar.bz2
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar.lz
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar.xz
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.tar.zst
yuzu-9dbe9d42914adc007cab42fd1c73f5f52313ec71.zip
-rw-r--r--src/yuzu/util/util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/util/util.cpp b/src/yuzu/util/util.cpp
index e99042a23..62c080aff 100644
--- a/src/yuzu/util/util.cpp
+++ b/src/yuzu/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;
}