From 55c608b482ed5eaba5091127dfd2d77d7d14db55 Mon Sep 17 00:00:00 2001 From: spycrab Date: Mon, 13 Aug 2018 15:05:30 +0200 Subject: [PATCH] Qt/TAS: Enable antialiasing for Stick/IR widgets --- Source/Core/DolphinQt/TAS/IRWidget.cpp | 3 +++ Source/Core/DolphinQt/TAS/StickWidget.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Source/Core/DolphinQt/TAS/IRWidget.cpp b/Source/Core/DolphinQt/TAS/IRWidget.cpp index 9e4a7d14ae..61784c3b63 100644 --- a/Source/Core/DolphinQt/TAS/IRWidget.cpp +++ b/Source/Core/DolphinQt/TAS/IRWidget.cpp @@ -34,6 +34,9 @@ void IRWidget::paintEvent(QPaintEvent* event) { QPainter painter(this); + painter.setRenderHint(QPainter::Antialiasing, true); + painter.setRenderHint(QPainter::SmoothPixmapTransform, true); + painter.setBrush(Qt::white); painter.drawRect(0, 0, width() - 1, height() - 1); diff --git a/Source/Core/DolphinQt/TAS/StickWidget.cpp b/Source/Core/DolphinQt/TAS/StickWidget.cpp index b9d6a104bc..df169a3f1d 100644 --- a/Source/Core/DolphinQt/TAS/StickWidget.cpp +++ b/Source/Core/DolphinQt/TAS/StickWidget.cpp @@ -35,6 +35,9 @@ void StickWidget::paintEvent(QPaintEvent* event) { QPainter painter(this); + painter.setRenderHint(QPainter::Antialiasing, true); + painter.setRenderHint(QPainter::SmoothPixmapTransform, true); + painter.setBrush(Qt::white); painter.drawEllipse(0, 0, width() - 1, height() - 1);