Lines Matching refs:nIdx
168 s32 *nScanLine, s32 nEvent, s16 *nIdx, in FillSection() argument
198 if (*pAddr != *nIdx) // Check continuity in FillSection()
200 *nIdx += 2; in FillSection()
201 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
203 *((u16 *)&aSortBuffer[*nIdx]) = (u16)nTile; in FillSection()
204 *nIdx += 2; in FillSection()
205 aSortBuffer[(*nIdx)++] = (s8)nI; in FillSection()
206 aSortBuffer[(*nIdx)++] = (s8)nJ; in FillSection()
207 *pAddr = *nIdx; in FillSection()
255 if (*pAddr != *nIdx) // Check continuity in FillSection()
257 *nIdx += 2; in FillSection()
258 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
260 *((u16 *)&aSortBuffer[*nIdx]) = (u16)nTile; in FillSection()
261 *nIdx += 2; in FillSection()
262 aSortBuffer[(*nIdx)++] = (s8)(nI - nMapX); in FillSection()
263 aSortBuffer[(*nIdx)++] = (s8)(nJ - nMapY); in FillSection()
264 *pAddr = *nIdx; in FillSection()
293 if (*pAddr != *nIdx) // Check continuity in FillSection()
295 *nIdx += 2; in FillSection()
296 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
298 *((u16 *)&aSortBuffer[*nIdx]) = (u16)nTile; in FillSection()
299 *nIdx += 2; in FillSection()
300 aSortBuffer[(*nIdx)++] = (s8)nI; in FillSection()
301 aSortBuffer[(*nIdx)++] = (s8)nJ; in FillSection()
302 *pAddr = *nIdx; in FillSection()
350 if (*pAddr != *nIdx) // Check continuity in FillSection()
352 *nIdx += 2; in FillSection()
353 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
355 *((u16 *)&aSortBuffer[*nIdx]) = (u16)nTile; in FillSection()
356 *nIdx += 2; in FillSection()
357 aSortBuffer[(*nIdx)++] = (s8)(nI - nMapX); in FillSection()
358 aSortBuffer[(*nIdx)++] = (s8)(nJ - nMapY); in FillSection()
359 *pAddr = *nIdx; in FillSection()
395 s16 nIdx; in G2DDrawLayer() local
421 nIdx = (s16)((nI-1)<<1); in G2DDrawLayer()
572 …FillSection(layer, aSortBuffer, &nScanLine, nEvent0, &nIdx, &nL, &nR, &rLeft, &rRight, rStep0, rSt… in G2DDrawLayer()
600 …FillSection(layer, aSortBuffer, &nScanLine, nEvent1, &nIdx, &nL, &nR, &rLeft, &rRight, rMid, rMid,… in G2DDrawLayer()
625 …FillSection(layer, aSortBuffer, &nScanLine, nEvent2+1, &nIdx, &nL, &nR, &rLeft, &rRight, rStep1, r… in G2DDrawLayer()
676 nIdx = (s16)(nMaterial<<1); in G2DDrawLayer()
683 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
686 nIdx -= nTile; in G2DDrawLayer()
687 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
689 nIdx+=2; in G2DDrawLayer()
690 nI = aSortBuffer[nIdx++]; in G2DDrawLayer()
691 nJ = aSortBuffer[nIdx++]; in G2DDrawLayer()
735 nIdx = (s16)(nMaterial<<1); in G2DDrawLayer()
742 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
745 nIdx -= nTile; in G2DDrawLayer()
746 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
748 nIdx+=2; in G2DDrawLayer()
749 nI = aSortBuffer[nIdx++]; in G2DDrawLayer()
750 nJ = aSortBuffer[nIdx++]; in G2DDrawLayer()
815 nIdx = (s16)(nMaterial<<1); in G2DDrawLayer()
821 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
824 nIdx -= nTile; in G2DDrawLayer()
825 nTile = *((s16 *)&aSortBuffer[nIdx]); in G2DDrawLayer()
827 nIdx+=2; in G2DDrawLayer()
828 nI = aSortBuffer[nIdx++]; in G2DDrawLayer()
829 nJ = aSortBuffer[nIdx++]; in G2DDrawLayer()