diff options
-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); |