summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-18 00:35:57 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-18 00:35:57 +0200
commit3f82941e685ce8c8b17f22a7c8b7b926e27b830f (patch)
treef8c19ecd4687546a0224cd6a90b16fe914f5416b /gui.py
parentbe6ebaa64a1c5727dfc46b1fb9cdd98ac263bdbf (diff)
draw_circle: also convert radius to window lengths
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 688c095..cf0710d 100644
--- a/gui.py
+++ b/gui.py
@@ -49,6 +49,7 @@ def draw_box(rect, color, filled=False, global_coords=True):
def draw_circle(pos, r, color, filled=False, global_coords=True):
if global_coords:
pos = world_to_win_pt(pos, c.player.center)
+ r = world_to_win_length(r)
if filled:
gfxdraw.filled_circle(screen, pos[0], pos[1], r, color)