From 69fb774c27f8490ac3a34490bc53678966259c06 Mon Sep 17 00:00:00 2001 From: Dav Date: Wed, 18 Apr 2012 00:00:57 -0500 Subject: [PATCH] Removed the redisplay in the passive mouse function --- projections/linefitti.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/projections/linefitti.c b/projections/linefitti.c index 6ffeac4..4c337d8 100644 --- a/projections/linefitti.c +++ b/projections/linefitti.c @@ -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