From bd369dc510c7f91733b3ae0ce739b8f2cc34a661 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 22 Jan 2010 23:21:53 -0500 Subject: Fix typo in paddle code. Signed-off-by: Matt Turner --- glpong3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glpong3d.c b/glpong3d.c index 9f78007..13eb677 100644 --- a/glpong3d.c +++ b/glpong3d.c @@ -324,7 +324,7 @@ SDL_GL_GetMouseState(GLfloat * x, GLfloat * y) { SDL_GetMouseState(&SDL_x, &SDL_y); *x = ((float)SDL_x / GLPONG_WIDTH) * 3.3f - 1.65f; - *y = ((float)SDL_y / GLPONG_HEIGHT) * 2.25f - 1.25f; + *y = ((float)SDL_y / GLPONG_HEIGHT) * 2.5f - 1.25f; #ifdef DEBUG printf("SDL (x, y): (%d, %d)\tGL (x, y): (%.3f, %.3f)\n", SDL_x, SDL_y, *x, *y); -- cgit v1.2.3