Project

General

Profile

« Previous | Next » 

Revision 8e34674e

Added by Leszek Koltunski over 7 years ago

Move the *List classes into static members of DistortedFramebuffer and DistortedObject.

View differences:

src/main/java/org/distorted/library/EffectQueue.java
54 54

  
55 55
  static
56 56
    {
57
    reset();
57
    release();
58 58
    }
59 59
  
60 60
///////////////////////////////////////////////////////////////////////////////////////////////////
......
104 104

  
105 105
  static boolean setMax(int index, int m)
106 106
    {
107
    if( (mCreated==false && !Distorted.isInitialized()) || m<=mMax[index] )
107
    if( (!mCreated && !Distorted.isInitialized()) || m<=mMax[index] )
108 108
      {
109 109
      if( m<0              ) m = 0;
110 110
      else if( m>Byte.MAX_VALUE ) m = Byte.MAX_VALUE;
......
146 146

  
147 147
///////////////////////////////////////////////////////////////////////////////////////////////////
148 148

  
149
  static void reset()
149
  static void release()
150 150
    {
151 151
    EffectTypes.reset(mMax);
152 152
    mCreated = false;  
......
341 341
      android.util.Log.e("EffectQueue", "numEffects="+mNumEffects+" effect id="+id+" index="+index+
342 342
                         " duration="+mCurrentDuration[index]+" inter[0] null="+inter0+" inter[1] null="+inter1+" inter[2] null="+inter2);
343 343
      
344
      if( inter0==false )
344
      if( !inter0 )
345 345
        {
346 346
        android.util.Log.e("EffectQueue","inter[0]: "+mInter[0][index].print());
347 347
        }
348
      if( inter1==false )
348
      if( !inter1 )
349 349
        {
350 350
        android.util.Log.e("EffectQueue","inter[1]: "+mInter[1][index].print());
351 351
        }
352
      if( inter2==false )
352
      if( !inter2 )
353 353
        {
354 354
        android.util.Log.e("EffectQueue","inter[2]: "+mInter[2][index].print());
355 355
        }

Also available in: Unified diff