Permalink
Browse files

Qt/MappingIndicator: Improve render quality

  • Loading branch information...
spycrab committed May 20, 2018
1 parent 56e91bf commit b0b14853c4298d790729383a163c59c2c033ca92
Showing with 7 additions and 0 deletions.
  1. +7 −0 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);

0 comments on commit b0b1485

Please sign in to comment.