summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);