summaryrefslogtreecommitdiff
path: root/glpong3d.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-01-22 23:21:53 -0500
committerMatt Turner <mattst88@gmail.com>2011-04-04 17:14:36 -0400
commitbd369dc510c7f91733b3ae0ce739b8f2cc34a661 (patch)
tree07594390d22b47e4adb9cb43c87de610c826da30 /glpong3d.c
parentc265e527e34736c49c2c6f017d84aa0723fb2fc9 (diff)
Fix typo in paddle code.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'glpong3d.c')
-rw-r--r--glpong3d.c2
1 files changed, 1 insertions, 1 deletions
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);