Fixed a bug with 3D layer scrolling where that layer would wrap incorrectly.
This commit is contained in:
parent
ad388e0610
commit
1719e1eb41
|
@ -2798,6 +2798,9 @@ static void GPU_ligne_layer(NDS_Screen * screen, u16 l)
|
||||||
{
|
{
|
||||||
int q = ((k + hofs) & 0x1FF);
|
int q = ((k + hofs) & 0x1FF);
|
||||||
|
|
||||||
|
if((q < 0) || (q > 255))
|
||||||
|
continue;
|
||||||
|
|
||||||
if(colorLine[q] & 0x8000)
|
if(colorLine[q] & 0x8000)
|
||||||
gpu->setFinalColor3d(k, q);
|
gpu->setFinalColor3d(k, q);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue