Qt/MappingIndicator: Improve render quality
This commit is contained in:
parent
56e91bfdc1
commit
b0b14853c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue