Changed GPU_ligne arguments to something better.

This commit is contained in:
yabause 2006-10-13 21:15:27 +00:00
parent 7a3a6645be
commit 5d1bd9d3e2
2 changed files with 5 additions and 4 deletions

View File

@ -122,9 +122,10 @@ extern Screen SubScreen;
void ScreenInit(void);
void ScreenDeInit(void);
static INLINE void GPU_ligne(GPU * gpu, u16 * buffer, u16 l)
static INLINE void GPU_ligne(Screen * screen, u16 l)
{
u16 * dst = buffer + l*256;
GPU * gpu = screen->gpu;
u16 * dst = GPU_screen + (screen->offset + l) * 256;
u16 spr[256];
u8 sprPrio[256];
u8 bgprio;

View File

@ -292,8 +292,8 @@ void NDS_releasTouch(void);
{
if(nds.VCount<192)
{
GPU_ligne(MainScreen.gpu, GPU_screen + (MainScreen.offset * 256), nds.VCount);
GPU_ligne(SubScreen.gpu, GPU_screen + (SubScreen.offset * 256), nds.VCount);
GPU_ligne(&MainScreen, nds.VCount);
GPU_ligne(&SubScreen, nds.VCount);
((u16 *)ARM9Mem.ARM9_REG)[0x0004>>1] |= 2;
((u16 *)MMU.ARM7_REG)[0x0004>>1] |= 2;
NDS_ARM9HBlankInt();