libnds: Typo bug in version 1.3.1 in background.h
Posted: Thu Dec 25, 2008 10:16 am
include/nds/arm9/background.h:546 :
I think it should be scrollY. Found because compiler warns about unused parameter with -Wall -Wextra flags.
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);
}