Skip to content

Commit

Permalink
Updates Drawing of Flipper Shape (#43)
Browse files Browse the repository at this point in the history
Update Flipper Render by moving int to the right set of parentheses.
atummons authored Dec 31, 2023
1 parent a9881e2 commit 0f8a9e4
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
@@ -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)

0 comments on commit 0f8a9e4

Please sign in to comment.