diff options
| author | JMC47 <JMC4789@gmail.com> | 2021-09-20 14:04:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-20 14:04:36 -0400 |
| commit | 7ec02ee4d37cef6a73ac7a678901904ca6855728 (patch) | |
| tree | dd26c1ffcd2cb0684d906ab44fb1a3f7bd0c8624 /Source/Core | |
| parent | 6129290d3188f9f38ee045f809ec2cb890b3dcab (diff) | |
| parent | 3bc9f66336f817b352e9d58a5aa2abd461316e3e (diff) | |
Merge pull request #10116 from malleoz/tas-input-gui-changes
StickWidget: Inscribe stick circle within a square
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/TAS/StickWidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/TAS/StickWidget.cpp b/Source/Core/DolphinQt/TAS/StickWidget.cpp index 7339e9ce52..26f806971a 100644 --- a/Source/Core/DolphinQt/TAS/StickWidget.cpp +++ b/Source/Core/DolphinQt/TAS/StickWidget.cpp @@ -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); |
