Project

General

Profile

« Previous | Next » 

Revision a889148a

Added by Leszek Koltunski almost 3 years ago

Minor.

View differences:

src/main/java/org/distorted/library/main/DistortedScreen.java
39 39
public class DistortedScreen extends DistortedFramebuffer
40 40
  {
41 41
  ///// DEBUGGING ONLY /////////////////////////
42
  private static final int NUM_FRAMES  = 100;
42
  private static final int NUM_FRAMES  = 80;
43 43
  private static final float DEBUG_SCR_FRAC = 0.15f;
44 44
  private static final float DEBUG_FRAC     = 0.5f;
45 45

  
......
130 130
          {
131 131
          mDebugWidth = (int)(mWidth*DEBUG_SCR_FRAC);
132 132
          mDebugHeight= (int)(mWidth*DEBUG_SCR_FRAC*DEBUG_FRAC);
133

  
134
          if( mDebugWidth<=0 || mDebugHeight<=0 )
135
            {
136
            int width = 100;
137
            mDebugWidth = (int)(width*DEBUG_SCR_FRAC);
138
            mDebugHeight= (int)(width*DEBUG_SCR_FRAC*DEBUG_FRAC);
139
            }
133 140
          }
134 141

  
135 142
        debugBitmap = Bitmap.createBitmap( mDebugWidth, mDebugHeight, Bitmap.Config.ARGB_8888);

Also available in: Unified diff