thirdparty/soloud/src/tools/tedsid2dump/tedmem.cpp
// renders multicolor text with reverse bit set
renders multicolor text with reverse bit set
renders multicolor text with reverse bit set
inline void TED::mc_text()
{
	unsigned char charcol=clrbuf[x];
	unsigned char chr=chrbuf[x]&0x7F;
	unsigned char *wbuffer = scrptr + hshift;
	unsigned char mask;
	mask = cset[ (chr<<3)|VertSubCount ];
	if ((charcol)&0x08) { 
		mcol[3]=(charcol)&0xF7;
		wbuffer[0] = wbuffer[1] = mcol[ (mask & 0xC0) >> 6 ];
		wbuffer[2] = wbuffer[3] = mcol[ (mask & 0x30) >> 4 ];
		wbuffer[4] = wbuffer[5] = mcol[ (mask & 0x0C) >> 2 ];
		wbuffer[6] = wbuffer[7] = mcol[ mask & 0x03 ];
	} else { 
		wbuffer[0] = (mask & 0x80) ? charcol : mcol[0];
		wbuffer[1] = (mask & 0x40) ? charcol : mcol[0];
		wbuffer[2] = (mask & 0x20) ? charcol : mcol[0];
		wbuffer[3] = (mask & 0x10) ? charcol : mcol[0];
		wbuffer[4] = (mask & 0x08) ? charcol : mcol[0];
		wbuffer[5] = (mask & 0x04) ? charcol : mcol[0];
		wbuffer[6] = (mask & 0x02) ? charcol : mcol[0];
		wbuffer[7] = (mask & 0x01) ? charcol : mcol[0];
	}
}
inline void TED :: mc_text ( ) { unsigned char charcol = clrbuf [ x ] ; unsigned char chr = chrbuf [ x ] & 0x7F ; unsigned char * wbuffer = scrptr + hshift ; unsigned char mask ; mask = cset [ ( chr << 3 ) | VertSubCount ] ; if ( ( charcol ) & 0x08 ) { mcol [ 3 ] = ( charcol ) & 0xF7 ; wbuffer [ 0 ] = wbuffer [ 1 ] = mcol [ ( mask & 0xC0 ) >> 6 ] ; wbuffer [ 2 ] = wbuffer [ 3 ] = mcol [ ( mask & 0x30 ) >> 4 ] ; wbuffer [ 4 ] = wbuffer [ 5 ] = mcol [ ( mask & 0x0C ) >> 2 ] ; wbuffer [ 6 ] = wbuffer [ 7 ] = mcol [ mask & 0x03 ] ; } else { wbuffer [ 0 ] = ( mask & 0x80 ) ? charcol : mcol [ 0 ] ; wbuffer [ 1 ] = ( mask & 0x40 ) ? charcol : mcol [ 0 ] ; wbuffer [ 2 ] = ( mask & 0x20 ) ? charcol : mcol [ 0 ] ; wbuffer [ 3 ] = ( mask & 0x10 ) ? charcol : mcol [ 0 ] ; wbuffer [ 4 ] = ( mask & 0x08 ) ? charcol : mcol [ 0 ] ; wbuffer [ 5 ] = ( mask & 0x04 ) ? charcol : mcol [ 0 ] ; wbuffer [ 6 ] = ( mask & 0x02 ) ? charcol : mcol [ 0 ] ; wbuffer [ 7 ] = ( mask & 0x01 ) ? charcol : mcol [ 0 ] ; } }
renders multicolor text with reverse bit set
renders multicolor text with reverse bit set
// if character is multicolored // this is a normally colored character