fix bug in 3d h-scrolling which was introduced by new 3d compositing
This commit is contained in:
parent
5dfc89ca83
commit
08f0a76fe2
|
@ -2515,12 +2515,11 @@ static void GPU_ligne_layer(NDS_Screen * screen, u16 l)
|
||||||
else if(hofs<0) { start = -hofs; end=255; ofs=0; }
|
else if(hofs<0) { start = -hofs; end=255; ofs=0; }
|
||||||
else { start = 0; end=255-hofs; ofs=hofs; }
|
else { start = 0; end=255-hofs; ofs=hofs; }
|
||||||
|
|
||||||
//gpu3D->NDS_3D_GetLine (l, start, end, (u16*)dst+ofs);
|
gpu3D->NDS_3D_GetLine(l, start, end, line3Dcolor, line3Dalpha);
|
||||||
gpu3D->NDS_3D_GetLine(l, start, end, line3Dcolor + ofs, line3Dalpha + ofs);
|
|
||||||
|
|
||||||
for(int k = start; k <= end; k++)
|
for(int k = start, q=0; k <= end; ++k, ++q)
|
||||||
if(line3Dcolor[k] & 0x8000)
|
if(line3Dcolor[q] & 0x8000)
|
||||||
gpu->setFinalColor3D(gpu, (k << 1), dst, line3Dcolor[k], line3Dalpha[k], k);
|
gpu->setFinalColor3D(gpu, (q+ofs)<<1, dst, line3Dcolor[q], line3Dalpha[q], 0);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue