mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Qt/TAS: Enable antialiasing for Stick/IR widgets
This commit is contained in:
parent
84c24516b1
commit
55c608b482
@ -34,6 +34,9 @@ void IRWidget::paintEvent(QPaintEvent* event)
|
|||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
|
painter.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
|
|
||||||
painter.setBrush(Qt::white);
|
painter.setBrush(Qt::white);
|
||||||
painter.drawRect(0, 0, width() - 1, height() - 1);
|
painter.drawRect(0, 0, width() - 1, height() - 1);
|
||||||
|
|
||||||
|
@ -35,6 +35,9 @@ void StickWidget::paintEvent(QPaintEvent* event)
|
|||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
|
painter.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
|
|
||||||
painter.setBrush(Qt::white);
|
painter.setBrush(Qt::white);
|
||||||
painter.drawEllipse(0, 0, width() - 1, height() - 1);
|
painter.drawEllipse(0, 0, width() - 1, height() - 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user