Core/burn/drv/sega/genesis_vid.cpp
/* Note: We expect plane = 0 for Scroll A, plane = 2 for Scroll B
   A Column is 8 Pixels Wide                                     */
We expect plane = 0 for Scroll A, plane = 2 for Scroll B
A Column is 8 Pixels Wide
We expect plane = 0 for Scroll A plane = 2 for Scroll B A Column is 8 Pixels Wide
static INT32 vdp_getvscroll(INT32 plane, INT32 column)
{
	UINT32 vsramoffset;
	switch (VdpVScrollMode)
	{
		case 0x00: 
			return VDP_VSRAM_WORD(plane) & 0x7ff;
		case 0x01: 
			if (column == 40) column = 39; 
			vsramoffset = (4 * (column >> 1)) + plane;
			return VDP_VSRAM_WORD(vsramoffset) & 0x7ff;
	}
	return 0;
}
static INT32 vdp_getvscroll ( INT32 plane , INT32 column ) { UINT32 vsramoffset ; switch ( VdpVScrollMode ) { case 0x00 : return VDP_VSRAM_WORD ( plane ) & 0x7ff ; case 0x01 : if ( column == 40 ) column = 39 ; vsramoffset = ( 4 * ( column >> 1 ) ) + plane ; return VDP_VSRAM_WORD ( vsramoffset ) & 0x7ff ; } return 0 ; }
Note: We expect plane = 0 for Scroll A, plane = 2 for Scroll B
A Column is 8 Pixels Wide
Note : We expect plane = 0 for Scroll A plane = 2 for Scroll B A Column is 8 Pixels Wide
/* Overall Scroll */ /* Column Scroll */ /* Fix Minor Innacuracy Only affects PotoPoto */