Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-06-04 18:12:21 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-06-04 18:12:21 (GMT)
commit538475228ed7455345d8d7a4a7b8d2c3ceea6bff (patch)
tree670acd95d4ac36b6c5b9f78b380926d3826f6b72
parent13964512ecc67727920319a36904ad5e08d1c040 (diff)
Fix triangle player size
-rw-r--r--player.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/player.py b/player.py
index ac5ec60..39b8f53 100644
--- a/player.py
+++ b/player.py
@@ -63,9 +63,9 @@ class Player:
size - line_width * 2, size - line_width * 2)
elif self.shape == 'triangle':
ctx.new_path()
- ctx.move_to(rect.x, rect.y + size)
- ctx.line_to(rect.x + size / 2, rect.y)
- ctx.line_to(rect.x + size, rect.y + size)
+ ctx.move_to(rect.x + line_width, rect.y + size - line_width)
+ ctx.line_to(rect.x + size / 2, rect.y + line_width)
+ ctx.line_to(rect.x + size - line_width, rect.y + size - line_width)
ctx.close_path()
ctx.set_source_rgba(*self.bg.get_rgba())