summaryrefslogtreecommitdiff
path: root/tictactoe.py
diff options
context:
space:
mode:
Diffstat (limited to 'tictactoe.py')
-rwxr-xr-xtictactoe.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tictactoe.py b/tictactoe.py
index 747c598..9432fae 100755
--- a/tictactoe.py
+++ b/tictactoe.py
@@ -239,11 +239,11 @@ class gtkTicTacToe (gtk.DrawingArea):
cr.fill ()
cr.set_source_rgb (0, 0, 0)
if self._map[i][j] == PLAYER_ID:
- cr.move_to (cell_side * i + 5, cell_side * j + 5)
- cr.line_to (cell_side * (i + 1) - 5,
- cell_side * (j + 1) - 5)
- cr.move_to (cell_side * (i + 1) - 5, cell_side * j + 5)
- cr.line_to (cell_side * i + 5, cell_side * (j + 1) - 5)
+ cr.move_to (cell_side * (i + 0.1), cell_side * (j + 0.1))
+ cr.line_to (cell_side * (i + 0.9),
+ cell_side * (j + 0.9))
+ cr.move_to (cell_side * (i + 0.9), cell_side * (j + 0.1))
+ cr.line_to (cell_side * (i + 0.1), cell_side * (j + 0.9))
cr.stroke ()
else:
cr.arc (cell_side * (i + 0.5),