X-Git-Url: https://code.delx.au/pong/blobdiff_plain/44d403c7823e58abb4993229b56e81de117e9c1b..6c1893c335f49f5a595e04b66c18dc88f8b5cff3:/pong.c diff --git a/pong.c b/pong.c index 09bf9d4..4ecaa8a 100644 --- a/pong.c +++ b/pong.c @@ -165,9 +165,9 @@ static void gameDisplay(void) { glEnd(); // Draw the ball - glPointSize(5.0); - glBegin(GL_POINTS); + glBegin(GL_LINES); glVertex2d(ballX, ballY); + glVertex2d(ballX - ballVecX, ballY - ballVecY); glEnd(); // Write the score