Revision f28fffc2
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedOutputSurface.java | ||
---|---|---|
116 | 116 |
// change tree topology (attach and detach children) |
117 | 117 |
boolean changed = DistortedAttachDaemon.toDo(); |
118 | 118 |
|
119 |
// if some changes have been made, we need to rebuilt our tree-isomorphism data structures.
|
|
119 |
// debugging only
|
|
120 | 120 |
if( changed ) |
121 | 121 |
{ |
122 | 122 |
for(int i=0; i<mNumChildren; i++) |
123 | 123 |
{ |
124 |
mChildren.get(i).treeIsomorphism(); |
|
125 | 124 |
mChildren.get(i).debug(0); |
126 | 125 |
} |
127 | 126 |
|
... | ... | |
135 | 134 |
// to be created immediately, before the calls to drawRecursive() |
136 | 135 |
toDo(); |
137 | 136 |
|
137 |
// debugging only |
|
138 | 138 |
if( changed ) |
139 | 139 |
{ |
140 | 140 |
DistortedSurface.debugLists(); |
... | ... | |
209 | 209 |
|
210 | 210 |
if( mColorCreated==CREATED ) |
211 | 211 |
{ |
212 |
moveToToDo();
|
|
212 |
markForCreation();
|
|
213 | 213 |
recreate(); |
214 | 214 |
} |
215 | 215 |
} |
... | ... | |
227 | 227 |
if( enable && mDepthCreated==DONT_CREATE ) |
228 | 228 |
{ |
229 | 229 |
mDepthCreated = NOT_CREATED_YET; |
230 |
moveToToDo();
|
|
230 |
markForCreation();
|
|
231 | 231 |
} |
232 | 232 |
if( !enable && mDepthCreated!=DONT_CREATE ) |
233 | 233 |
{ |
234 | 234 |
mDepthCreated = DONT_CREATE; |
235 |
moveToToDo();
|
|
235 |
markForCreation();
|
|
236 | 236 |
} |
237 | 237 |
} |
238 | 238 |
|
Also available in: Unified diff
A Lot of fixes for the issues uncovered by Olimpic.
Still at least 1 known issue: sometimes, when we re-add a Surface, some garbage pops up on the screen for a brief split second. Visible in Olimpic.