// draw the background box the right size
// for the message
float outputWidth, outputHeight, pad=10.f;
GetTextSize( messages[c].message, outputWidth, outputHeight, hudFont,
1.f );
float messageH = outputHeight + 2.f*pad;
float x = 0.f, y = c*messageH;
// black backing
DrawRect( FLinearColor::Black, x, y, Canvas->SizeX, messageH );
// draw our message using the hudFont
DrawText( messages[c].message, messages[c].color, x + pad, y + pad,
hudFont );