mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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.;
|
float centerx = width() / 2., centery = height() / 2.;
|
||||||
|
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
p.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
p.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
|
|
||||||
float width = 64, height = 64;
|
float width = 64, height = 64;
|
||||||
float deadzone = m_cursor_deadzone->GetValue() * 48;
|
float deadzone = m_cursor_deadzone->GetValue() * 48;
|
||||||
@ -194,6 +196,8 @@ void MappingIndicator::DrawStick()
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
p.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
p.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
|
|
||||||
// Draw maximum values
|
// Draw maximum values
|
||||||
p.setBrush(Qt::white);
|
p.setBrush(Qt::white);
|
||||||
@ -222,6 +226,9 @@ void MappingIndicator::DrawStick()
|
|||||||
void MappingIndicator::DrawMixedTriggers()
|
void MappingIndicator::DrawMixedTriggers()
|
||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
p.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
p.setRenderHint(QPainter::TextAntialiasing, true);
|
||||||
|
p.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
|
|
||||||
// Polled values
|
// Polled values
|
||||||
double r_analog = PollControlState(m_mixed_triggers_r_analog);
|
double r_analog = PollControlState(m_mixed_triggers_r_analog);
|
||||||
|
Loading…
Reference in New Issue
Block a user