… | |
… | |
211 | |
211 | |
212 | ix.pri = pri; |
212 | ix.pri = pri; |
213 | ix.idx = idx; |
213 | ix.idx = idx; |
214 | ix.ofs = d->data.size (); |
214 | ix.ofs = d->data.size (); |
215 | |
215 | |
|
|
216 | // this is (hopefully) a temporary fix around older cfplus versions not |
|
|
217 | // supporting interleaved transfers |
|
|
218 | ns->ixface.insert (ns->ixface.begin (), ix); |
|
|
219 | |
|
|
220 | #if 0 |
216 | // the by far most common case will be to insert |
221 | // the by far most common case will be to insert |
217 | // right at the end, so no looping. |
222 | // right at the end, so no looping. |
218 | auto (i, ns->ixface.end ()); |
223 | auto (i, ns->ixface.end ()); |
219 | for (; i != ns->ixface.begin (); ) |
224 | for (; i != ns->ixface.begin (); ) |
220 | if (pri >= (--i)->pri) |
225 | if (pri >= (--i)->pri) |
221 | break; |
226 | break; |
222 | |
227 | |
223 | ns->ixface.insert (i, ix); |
228 | ns->ixface.insert (i, ix); |
|
|
229 | #endif |
224 | } |
230 | } |
225 | |
231 | |
226 | /** |
232 | /** |
227 | * Tells client the picture it has to use |
233 | * Tells client the picture it has to use |
228 | * to smooth a picture number given as argument. |
234 | * to smooth a picture number given as argument. |