diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-08-13 15:05:30 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-08-13 15:05:30 +0200 |
| commit | 55c608b482ed5eaba5091127dfd2d77d7d14db55 (patch) | |
| tree | 391fdffe30eaa99966b4e79c4694538ae40fec5b /Source | |
| parent | 84c24516b13d23900273d6010737e0486caef421 (diff) | |
Qt/TAS: Enable antialiasing for Stick/IR widgets
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/TAS/IRWidget.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/TAS/StickWidget.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
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); |
