mirror of
https://github.com/glfw/glfw.git
synced 2026-08-27 19:45:54 +02:00
Fix various warnings reported by gcc
Shadowed variables, const warnings
This commit is contained in:
@@ -330,7 +330,7 @@ void DrawBoingBall( void )
|
||||
/*****************************************************************************
|
||||
* Bounce the ball.
|
||||
*****************************************************************************/
|
||||
void BounceBall( double dt )
|
||||
void BounceBall( double delta_t )
|
||||
{
|
||||
GLfloat sign;
|
||||
GLfloat deg;
|
||||
@@ -358,8 +358,8 @@ void BounceBall( double dt )
|
||||
}
|
||||
|
||||
/* Update ball position */
|
||||
ball_x += ball_x_inc * ((float)dt*ANIMATION_SPEED);
|
||||
ball_y += ball_y_inc * ((float)dt*ANIMATION_SPEED);
|
||||
ball_x += ball_x_inc * ((float)delta_t*ANIMATION_SPEED);
|
||||
ball_y += ball_y_inc * ((float)delta_t*ANIMATION_SPEED);
|
||||
|
||||
/*
|
||||
* Simulate the effects of gravity on Y movement.
|
||||
|
||||
@@ -442,7 +442,6 @@ static void mouseButtonFun(GLFWwindow window, int button, int action)
|
||||
int main(void)
|
||||
{
|
||||
GLFWwindow window;
|
||||
int width, height;
|
||||
|
||||
// Initialise GLFW
|
||||
if (!glfwInit())
|
||||
|
||||
Reference in New Issue
Block a user