diff options
author | C. Scott Ananian <cscott@laptop.org> | 2007-12-13 04:44:57 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2007-12-13 06:59:59 (GMT) |
commit | 4a8ce80e0e2ca99664c1bcb4f56f509ea81420bc (patch) | |
tree | 4473f498a939731285eabed75929e292f046391a /data | |
parent | 8d26afc0dea107f400260c68e04b93c0fe897dfe (diff) |
Fix a DeprecationWarning about floating-point args in pong example.
Diffstat (limited to 'data')
-rw-r--r-- | data/graphics/pong | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/graphics/pong b/data/graphics/pong index 0ce3a9e..5916c0b 100644 --- a/data/graphics/pong +++ b/data/graphics/pong @@ -124,7 +124,7 @@ while pippy.pygame.next_frame(): # draw the unused balls for i in range(balls): - pygame.draw.circle(screen, ball_color, (30+i*ball_radius*2.4, 30), + pygame.draw.circle(screen, ball_color, (int(round(30+i*ball_radius*2.4)), 30), ball_radius) # update the display |