Project

General

Profile

« Previous | Next » 

Revision 95bc9f69

Added by Leszek Koltunski over 7 years ago

Fix 'Deform' and 'Projection's behaviour after onPause().

View differences:

src/main/java/org/distorted/examples/deform/DeformRenderer.java
93 93
      fpsQueues     = new DistortedEffectQueues();
94 94
      stretchQueues = new DistortedEffectQueues();
95 95

  
96
      mRegion = new Static4D(0,0,0,0);
96
      mRegion = new Static4D(0,0,50,50);
97 97

  
98 98
      durations = new long[NUM_FRAMES+1];
99 99
      currDuration = 0;
......
167 167

  
168 168
   public void onPause()
169 169
      {
170
      bitmapCreated = false;  
170
      bitmapCreated = false;
171 171
      }
172 172
      
173 173
///////////////////////////////////////////////////////////////////////////////////////////////////
......
198 198
     scrHeight = height;
199 199
     scrWidth  = width;
200 200

  
201
     setRegionRadius(50);
202

  
203 201
     Distorted.onSurfaceChanged(width, height);
204 202
      
205 203
     if( !bitmapCreated )
206 204
       {
207 205
       createBitmap(scrWidth/2,scrHeight/2);
206
       stretchQueues.abortAllEffects();
207
       fpsQueues.abortAllEffects();
208 208
       stretchQueues.move( new Static3D(scrWidth/4,scrHeight/4,0) );
209 209
       fpsQueues.move( new Static3D(5,5,0) );
210 210
       bitmapCreated=true;

Also available in: Unified diff