- Fixed the bug that resulted in missing backgrounds in Megaman ZX and AoE (probably others too)

This commit is contained in:
shashclp 2007-01-11 05:08:45 +00:00
parent b83c0051a6
commit 9a1143a3e7
1 changed files with 11 additions and 1 deletions

View File

@ -377,7 +377,17 @@ void GPU_setBGProp(GPU * gpu, u16 num, u16 p)
gpu->BG_bmp_ram[num] += (cnt->ScreenBase_Block * ADDRESS_STEP_16KB); gpu->BG_bmp_ram[num] += (cnt->ScreenBase_Block * ADDRESS_STEP_16KB);
gpu->BG_map_ram[num] += (cnt->ScreenBase_Block * ADDRESS_STEP_2KB); gpu->BG_map_ram[num] += (cnt->ScreenBase_Block * ADDRESS_STEP_2KB);
gpu->BGExtPalSlot[num] = cnt->PaletteSet_Wrap * 2 + num ; switch(num)
{
case 0:
case 1:
gpu->BGExtPalSlot[num] = cnt->PaletteSet_Wrap * 2 + num ;
break;
default:
gpu->BGExtPalSlot[num] = (u8)num;
break;
}
/*if(!(prop&(3<<16))) /*if(!(prop&(3<<16)))
{ {