Fixed a bug with 3D layer scrolling where that layer would wrap incorrectly.

This commit is contained in:
luigi__ 2009-05-01 20:56:54 +00:00
parent ad388e0610
commit 1719e1eb41
1 changed files with 3 additions and 0 deletions

View File

@ -2798,6 +2798,9 @@ static void GPU_ligne_layer(NDS_Screen * screen, u16 l)
{
int q = ((k + hofs) & 0x1FF);
if((q < 0) || (q > 255))
continue;
if(colorLine[q] & 0x8000)
gpu->setFinalColor3d(k, q);
}