diff options
author | Matt Turner <mattst88@gmail.com> | 2010-01-22 23:21:53 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-04-04 17:14:36 -0400 |
commit | bd369dc510c7f91733b3ae0ce739b8f2cc34a661 (patch) | |
tree | 07594390d22b47e4adb9cb43c87de610c826da30 | |
parent | c265e527e34736c49c2c6f017d84aa0723fb2fc9 (diff) |
Fix typo in paddle code.
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | glpong3d.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |