|
From: andrew7 <bd...@us...> - 2007-02-18 00:55:47
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31890/include/smartwin Modified Files: Place.h Log Message: Add working tabTo function. Index: Place.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/Place.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Place.h 5 May 2006 17:14:37 -0000 1.8 +++ Place.h 18 Feb 2007 00:55:44 -0000 1.9 @@ -162,7 +162,7 @@ */ void tabTo( double xfract ) { - itsPos.x = itsLowRight.x + ( long )( xfract * ( itsLowRight.x - itsUpLeft.x ) ); + itsPos.x = itsUpLeft.x + ( long )( xfract * ( itsLowRight.x - itsUpLeft.x ) ); } /// Sets obj.pos to the current position, and updates the position by obj.size. |