void CheckGfxHeaderTilesToUpdate(GfxHeaderData header) { if (tileModifiedEvent == null) { return; } if (header.DestAddr < 0x8000 || header.DestAddr > 0x9fff) { return; } for (int t = 0; t < header.GetBlockCount(); t++) { int tile = t + (header.DestAddr - 0x8000) / 16; tileModifiedEvent(header.DestBank, tile); } }
void CheckGfxHeaderTilesToUpdate(GfxHeaderData header) { if (tileModifiedEvent == null) return; if (header.DestAddr < 0x8000 || header.DestAddr > 0x9fff) return; for (int t=0; t<header.GetBlockCount(); t++) { int tile = t+(header.DestAddr-0x8000)/16; tileModifiedEvent(header.DestBank, tile); } }