Esempio n. 1
0
File: boxer.cpp Progetto: Fulg/mame
UINT32 boxer_state::screen_update_boxer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
	int i, j;

	bitmap.fill(1, cliprect);

	for (i = 0; i < 16; i++)
	{
		for (j = 0; j < 32; j++)
		{
			UINT8 code = m_tile_ram[32 * i + j];


				m_gfxdecode->gfx(2)->transpen(bitmap,cliprect,
				code,
				0,
				code & 0x40, code & 0x40,
				8 * j + 4,
				8 * (i % 2) + 32 * (i / 2), 0);
		}
	}

	draw_boxer(bitmap, cliprect);
	return 0;
}
Esempio n. 2
0
static SCREEN_UPDATE_IND16( boxer )
{
	boxer_state *state = screen.machine().driver_data<boxer_state>();
	int i, j;

	bitmap.fill(1, cliprect);

	for (i = 0; i < 16; i++)
	{
		for (j = 0; j < 32; j++)
		{
			UINT8 code = state->m_tile_ram[32 * i + j];

			drawgfx_transpen(bitmap, cliprect,
				screen.machine().gfx[2],
				code,
				0,
				code & 0x40, code & 0x40,
				8 * j + 4,
				8 * (i % 2) + 32 * (i / 2), 0);
		}
	}

	draw_boxer(screen.machine(), bitmap, cliprect);
	return 0;
}