summaryrefslogtreecommitdiffstats
path: root/src/ball.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ball.c')
-rw-r--r--src/ball.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ball.c b/src/ball.c
index c9ec8f1..91c2995 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -4,7 +4,7 @@
#include "ball.h"
struct ball *
-new_ball(int x, int y)
+new_ball(float x, float y)
{
struct ball *b;
@@ -28,7 +28,7 @@ free_ball(struct ball *b)
void
clear_ball(struct ball *b)
{
- mvprintw(b->y, b->x, " ");
+ mvprintw((int) (b->y + 0.5), (int) (b->x + 0.5), " ");
}
void
@@ -40,5 +40,5 @@ update_ball(struct ball *b)
void
draw_ball(struct ball *b)
{
- mvprintw(b->y, b->x, "o");
+ mvprintw((int) (b->y + 0.5), (int) (b->x + 0.5), "o");
}