diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-06-04 18:12:21 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-06-16 15:26:37 (GMT) |
commit | 1519952d1bd9d9f2825db67772c916c11cf590dc (patch) | |
tree | 1e07d46a019ed585550750ad0c4dca8fa18b107c | |
parent | 5f33716e06b83fcf0c4671ea3b4fab70ef735a67 (diff) |
Fix triangle player size
-rw-r--r-- | player.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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()) |