Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
misc.c
Log Message:
Fix bug potentially causing eternal loop while sliding.
===================================================================
RCS file: /cvs/e/e16/e/src/misc.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- misc.c 8 Jan 2006 23:51:07 -0000 1.71
+++ misc.c 27 Apr 2006 21:52:32 -0000 1.72
@@ -155,7 +155,7 @@
if (speed < 500)
speed = 500;
/* When speed is 1000 the loop will take one sec. */
- etl_fac = (k2 - k1) * speed / 1000.;
+ etl_fac = (k2 - k1) * (double)speed / 1000.;
gettimeofday(&etl_tv_start, NULL);
ESync();
@@ -171,10 +171,10 @@
/* Find elapsed time since loop start */
tm = ETimeElapsed(&etl_tv_start);
+ etl_k = etl_k1 + tm * etl_fac;
#if 0
Eprintf("ETimedLoopNext k=%4f tm=%.3f\n", etl_k, tm);
#endif
- etl_k = etl_k1 + tm * etl_fac;
y = ETimeCurve(etl_k1, etl_k2, (float)etl_k, 2);
EobjsRepaint();
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs