Skip to content

Commit

Permalink
Fixes Drawing of Flipper Shape
Browse files Browse the repository at this point in the history
The int was inside the wrong set or parenthases, so it broke monitor when it tried to load.
  • Loading branch information
atummons committed Nov 20, 2023
1 parent a9881e2 commit 1154c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpfmonitor/core/playfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def paint(self, painter, option, widget=None):
scale = .7
points = QPolygon([
QPoint(0, int(self.device_size * scale * -1)),
QPoint(int(self.device_size * scale * -1), ((int(self.device_size * scale) / 2) * aspect_ratio)),
QPoint(int(self.device_size * scale), ((int(self.device_size * scale) / 2) * aspect_ratio)),
QPoint(int(self.device_size * scale * -1), (int((self.device_size * scale) / 2) * aspect_ratio)),
QPoint(int(self.device_size * scale), (int((self.device_size * scale) / 2) * aspect_ratio)),
])
painter.drawPolygon(points)

Expand Down

0 comments on commit 1154c95

Please sign in to comment.