Project

General

Profile

« Previous | Next » 

Revision d5e134f2

Added by Leszek Koltunski over 4 years ago

Fixes for pausing and restarting.

View differences:

src/main/java/org/distorted/examples/dynamic/DynamicSurfaceView.java
430 430
            mPoints[MAX_DIM*mPosition+indexW] = halfScreenHeight;
431 431
            }
432 432

  
433
          if( dyn.get(mPoints,MAX_DIM*mPosition, time-mStartTime, mDiffTime) )
433
          if( dyn.get(mPoints,MAX_DIM*mPosition, time, mDiffTime) )
434 434
            {
435 435
            stopDynamic();
436 436
            }
src/main/java/org/distorted/examples/movingeffects/MovingEffectsSurfaceView.java
229 229
          for(int i=0; i<NUM_POINTS; i++)
230 230
            {
231 231
            mPaint.setColor( 0xffffffff );
232
            mCenter.get( drawCoord, 0, (long)(i*step) );
232
            mCenter.get( drawCoord, 0, (long)(i*step), 0 );
233 233
            c.drawCircle( (drawCoord[0]+0.5f)*mScrWidth, 0.5f*mScrHeight-drawCoord[1]*mScrWidth, mSize1, mPaint );
234 234
            }
235 235
          }

Also available in: Unified diff