Skip to content

Commit

Permalink
Merge pull request #10116 from malleoz/tas-input-gui-changes
Browse files Browse the repository at this point in the history
StickWidget: Inscribe stick circle within a square
  • Loading branch information
JMC47 committed Sep 20, 2021
2 parents 6129290 + 3bc9f66 commit 7ec02ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt/TAS/StickWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ void StickWidget::paintEvent(QPaintEvent* event)

const int diameter = std::min(width(), height()) - PADDING * 2;

// inscribe the StickWidget inside a square
painter.fillRect(PADDING, PADDING, diameter, diameter, Qt::lightGray);

painter.setBrush(Qt::white);
painter.drawEllipse(PADDING, PADDING, diameter, diameter);

Expand Down

0 comments on commit 7ec02ee

Please sign in to comment.