From b0b14853c4298d790729383a163c59c2c033ca92 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 20 May 2018 17:36:01 +0200 Subject: [PATCH] Qt/MappingIndicator: Improve render quality --- Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp index 3979d32ef0..a0ef71c13f 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp @@ -109,6 +109,8 @@ void MappingIndicator::DrawCursor(bool tilt) float centerx = width() / 2., centery = height() / 2.; QPainter p(this); + p.setRenderHint(QPainter::Antialiasing, true); + p.setRenderHint(QPainter::SmoothPixmapTransform, true); float width = 64, height = 64; float deadzone = m_cursor_deadzone->GetValue() * 48; @@ -194,6 +196,8 @@ void MappingIndicator::DrawStick() }}; QPainter p(this); + p.setRenderHint(QPainter::Antialiasing, true); + p.setRenderHint(QPainter::SmoothPixmapTransform, true); // Draw maximum values p.setBrush(Qt::white); @@ -222,6 +226,9 @@ void MappingIndicator::DrawStick() void MappingIndicator::DrawMixedTriggers() { QPainter p(this); + p.setRenderHint(QPainter::Antialiasing, true); + p.setRenderHint(QPainter::TextAntialiasing, true); + p.setRenderHint(QPainter::SmoothPixmapTransform, true); // Polled values double r_analog = PollControlState(m_mixed_triggers_r_analog);