Colored text with listserv.

Status
Not open for further replies.
srb20050od3.png
 
What are you talking about? You know they wouldn't intentionally kill all the humans off... they'd make most of them slaves.
 
Look at the source code for answers.

Code:
	switch (c & 0xff00)
	{
	case 0x100: // 0x81, purple
		colormap = purplemap;
		break;
	case 0x200: // 0x82, yellow
		colormap = yellowmap;
		break;
	case 0x300: // 0x83, lgreen
		colormap = lgreenmap;
		break;
	case 0x400: // 0x84, blue
		colormap = bluemap;
		break;
	case 0x500: // 0x85, red
		colormap = redmap;
		break;
	}

	flags = c & 0xffff0000;
	c &= 0x7f;

	c = toupper(c) - HU_FONTSTART;
	if (c < 0 || (c >= HU_REALFONTSIZE && c != '~' - HU_FONTSTART && c != '`' - HU_FONTSTART))
		return;

	w = hu_font[c]->width;
	if (x + w > vid.width)
		return;

	if (colormap != NULL)
		V_DrawMappedPatch(x, y, flags, hu_font[c], colormap);
	else
		V_DrawScaledPatch(x, y, flags, hu_font[c]);

Too bad you don't know how to convert it. :)
 
Isn't it obvious? Flame put something in his server name to change the colour for everyone.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top