mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Merge pull request #10116 from malleoz/tas-input-gui-changes
StickWidget: Inscribe stick circle within a square
This commit is contained in:
commit
7ec02ee4d3
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ void StickWidget::paintEvent(QPaintEvent* event)
|
||||||
|
|
||||||
const int diameter = std::min(width(), height()) - PADDING * 2;
|
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.setBrush(Qt::white);
|
||||||
painter.drawEllipse(PADDING, PADDING, diameter, diameter);
|
painter.drawEllipse(PADDING, PADDING, diameter, diameter);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue