Project

General

Profile

« Previous | Next » 

Revision 9ec374e8

Added by Leszek Koltunski over 3 years ago

More support for using the library from more than one activity

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueue.java
24 24
import org.distorted.library.effect.EffectType;
25 25
import org.distorted.library.main.DistortedLibrary;
26 26
import org.distorted.library.main.InternalMaster;
27
import org.distorted.library.main.InternalStackFrameList;
27 28

  
28 29
import java.util.ArrayList;
29 30
import java.util.HashMap;
......
239 240

  
240 241
  public static boolean setMax(int index, int m)
241 242
    {
242
    if( !DistortedLibrary.isInitialized() || m<=mMax[index] )
243
    if( !InternalStackFrameList.isInitialized() || m<=mMax[index] )
243 244
      {
244 245
      mMax[index] = m<0 ? 0:m;
245 246
      return true;

Also available in: Unified diff