Project

General

Profile

« Previous | Next » 

Revision 576afdf9

Added by Leszek Koltunski over 1 year ago

Workaround (real reason not found) for the issue when furious touching the screen in the BandagedCreator could sometimes leave a cubit permanently lit.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java
162 162
       if( !mCubits[c].isAttached() )
163 163
         {
164 164
         mCubits[c].attach();
165
         mCubits[c].setUnmarked();
166 165
         mScreen.attach(mCubits[c].getNode());
167 166
         }
168 167
       if( mCubits[c].getPosition().length>3 )
169 168
         {
170 169
         mCubits[c].reset(mScaleValue);
171 170
         }
171
       mCubits[c].setUnmarked();
172 172
       }
173 173
     }
174 174

  
......
327 327
     android.util.Log.e("CREATOR", "unexpected exception: "+ex.getMessage() );
328 328
     }
329 329

  
330
///////////////////////////////////////////////////////////////////////////////////////////////////
331

  
332
   public BandagedCubit[] getCubits()
333
     {
334
     return mCubits;
335
     }
336

  
337 330
///////////////////////////////////////////////////////////////////////////////////////////////////
338 331

  
339 332
   public DistortedScreen getScreen()

Also available in: Unified diff