libnds: Typo bug in version 1.3.1 in background.h

Post Reply
Antonz
Posts: 2
Joined: Thu Dec 25, 2008 10:09 am

libnds: Typo bug in version 1.3.1 in background.h

Post by Antonz » Thu Dec 25, 2008 10:16 am

include/nds/arm9/background.h:546 :

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);
}
I think it should be scrollY. Found because compiler warns about unused parameter with -Wall -Wextra flags.

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: libnds: Typo bug in version 1.3.1 in background.h

Post by WinterMute » Fri Dec 26, 2008 1:47 am

Thanks for catching that, it's been corrected in SVN & will be part of the libnds 1.3.2 update.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest