revert crazymax's change to master brightness. it looks 100% wrong, so I dunno what he was trying to do. now fades on subscreen work correctly

This commit is contained in:
zeromus 2008-12-08 06:52:38 +00:00
parent 7cb8b54dc3
commit 39a5aa7b50
1 changed files with 15 additions and 17 deletions

View File

@ -2213,10 +2213,10 @@ static INLINE void GPU_ligne_DispCapture(u16 l)
}
}
static INLINE void GPU_ligne_Brightness(u16 l)
static INLINE void GPU_ligne_Brightness(NDS_Screen * screen, u16 l)
{
GPU * gpu = MainScreen.gpu;
u8 * dst = GPU_screen + (MainScreen.offset + l) * 512;
GPU * gpu = screen->gpu;
u8 * dst = GPU_screen + (screen->offset + l) * 512;
u16 i16;
#ifndef HAVE_LIBGDKGLEXT_X11_1_0
// damdoum :
@ -2375,10 +2375,8 @@ void GPU_ligne(NDS_Screen * screen, u16 l)
}
if (gpu->core == GPU_MAIN)
{
GPU_ligne_DispCapture(l);
GPU_ligne_Brightness(l);
}
GPU_ligne_Brightness(screen, l);
}
void gpu_savestate(std::ostream* os)