Skip to content

Commit

Permalink
Removed the redisplay in the passive mouse function
Browse files Browse the repository at this point in the history
  • Loading branch information
davoclavo committed Apr 18, 2012
1 parent f772d10 commit 69fb774
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions projections/linefitti.c
Expand Up @@ -100,13 +100,12 @@ void mouseMovedPressed( int x, int y ) {

// Left button presses place a control point.
void mouseMoved( int x, int y ) {

/*
float xPos = ((float)x-(float)(WindowWidth)/2)/((float)(WindowWidth)/2);
float yPos = ((float)y)/((float)(WindowHeight)/2);
//printf("x: %d, y: %d -- xPos: %f, yPos: %f\n",x,y,xPos,yPos);
yPos = 1.0f-yPos; // Flip value since y position is from top row.

glutPostRedisplay();
yPos = 1.0f-yPos; // Flip value since y position is from top row.
printf("x: %d, y: %d -- xPos: %f, yPos: %f\n",x,y,xPos,yPos);
*/
}

// Decrease the pointer
Expand Down

0 comments on commit 69fb774

Please sign in to comment.