diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-17 15:47:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 15:47:34 +0200 |
commit | 08af788a571d260bcf4959f077e3409a9393294a (patch) | |
tree | 69efa225f11cfc4131ac89a9ae5fa6aab5a18714 | |
parent | Merge pull request #1331 from raven02/astc_8_8 (diff) | |
parent | yuzu/util: Antialias game list compatibility pixmaps (diff) | |
download | yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar.gz yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar.bz2 yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar.lz yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar.xz yuzu-08af788a571d260bcf4959f077e3409a9393294a.tar.zst yuzu-08af788a571d260bcf4959f077e3409a9393294a.zip |
-rw-r--r-- | src/yuzu/util/util.cpp | 3 |
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; } |