Code: Select all
void bgSet(int id, int angle, s32 sx, s32 sy, s32 scrollX, s32 scrollY, s32 rotCenterX, s32 rotCenterY)
{
bgState[id].scaleX = sx;
bgState[id].scaleY = sy;
bgState[id].scrollX = scrollX;
bgState[id].scrollY = scrollX; // <---- Here
bgState[id].centerX = rotCenterX;
bgState[id].centerY = rotCenterY;
bgSetRotate(id, angle);
}