- Fixed too much background enabled when not needed due to window handling (fixes Megaman ZX subscreen)

This commit is contained in:
shashclp 2007-01-11 05:51:26 +00:00
parent 9a1143a3e7
commit 2d542a64c7
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void GPU_DeInit(GPU * gpu)
void GPU_setVideoProp(GPU * gpu, u32 p)
{
BOOL LayersEnable[5];
u16 WinBG;
u16 WinBG=0;
struct _DISPCNT * cnt = &gpu->dispCnt.bitfield;
gpu->dispCnt.integer = p;
@ -185,8 +185,11 @@ void GPU_setVideoProp(GPU * gpu, u32 p)
GPU_setBGProp(gpu, 1, T1ReadWord(ARM9Mem.ARM9_REG, gpu->core * ADDRESS_STEP_4KB + 10));
GPU_setBGProp(gpu, 0, T1ReadWord(ARM9Mem.ARM9_REG, gpu->core * ADDRESS_STEP_4KB + 8));
if (cnt->Win0_Enable || cnt->Win1_Enable)
{
WinBG = (gpu->WINDOW_INCNT.val | gpu->WINDOW_OUTCNT.val);
WinBG = WinBG | (WinBG >> 8);
}
// Let's prepare the field for WINDOWS implementation
LayersEnable[0] = gpu->dispBG[0] && (cnt->BG0_Enable || (WinBG & 0x1));