Esempio n. 1
0
static INT32 DrvDraw()
{
	if (DrvRecalc) {
		for (INT32 i = 0; i < 0x800; i+=2) {
			speedspn_palette_write(i);
		}
		DrvRecalc = 0;
	}

	if (*display_enable)
	{
		draw_layer();
		draw_sprites();
	}
	else
	{
		for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
			pTransDraw[i] = black_color;
		}
	}

	BurnTransferCopy(DrvPalette);

	return 0;
}
Esempio n. 2
0
static void DrvDraw()
{
	BurnTransferClear();
	DrvCalcPalette();
	
	DrvRenderTileALayer();
	BurnTransferCopy(DrvPalette);
}
Esempio n. 3
0
static int TmntDraw()
{
	BurnTransferClear();
	TmntPalUpdate(bTmntRecalcPal); // Recalc whole pal if needed
	bTmntRecalcPal=0;
	BurnClearScreen();
	TmntTileDraw();
	BurnTransferCopy(TmntPal);
	return 0;
}
Esempio n. 4
0
static int DrvDraw()
{
	if (DrvRecalc) {
		for (int i = 0; i < 0x1000; i++) {
			int rgb = Palette[i];
			DrvPalette[i] = BurnHighCol(rgb >> 16, rgb >> 8, rgb, 0);
		}
	}

	BurnTransferClear();
	draw_layer();

	draw_sprites();

	BurnTransferCopy(DrvPalette);

	return 0;
}