mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
Fix for MT03561: robokid, robokidj, robokidj2: Segmentation Fault after OK
This commit is contained in:
parent
9a05e23eda
commit
c28e7e339e
@ -92,8 +92,8 @@ static TILEMAP_MAPPER( omegaf_bg_scan )
|
||||
|
||||
static void robokid_get_bg_tile_info(running_machine* machine, tile_data* const tileinfo, tilemap_memory_index const tile_index, int const gfxnum, const UINT8* const videoram)
|
||||
{
|
||||
int const lo = machine->generic.videoram.u8[(tile_index << 1)];
|
||||
int const hi = machine->generic.videoram.u8[(tile_index << 1) | 1];
|
||||
int const lo = videoram[(tile_index << 1)];
|
||||
int const hi = videoram[(tile_index << 1) | 1];
|
||||
int const tile = ((hi & 0x10) << 7) | ((hi & 0x20) << 5) | ((hi & 0xc0) << 2) | lo;
|
||||
int const color = hi & 0x0f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user