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]);