mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Complete font::print_wrap flag handling
Also added some borders to more of the text in room name translator mode, fixed a positioning issue if the interface font is not 8x8, and migrated the trophy texts to font::print_wrap (including PR_COLORGLYPH_BRI that still needed to be done)
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
689d6e3e97
commit
dadb7f2623
@@ -1827,18 +1827,16 @@ void Graphics::drawtrophytext(void)
|
||||
break;
|
||||
}
|
||||
|
||||
/* These were `bprint` before */
|
||||
// TODO: add PR_COLORGLYPH_BRI(brightness) | PR_BOR
|
||||
short lines;
|
||||
if (top_text != NULL)
|
||||
{
|
||||
font::string_wordwrap(top_text, 304, &lines);
|
||||
PrintWrap(-1, 11-(lines-1)*5, top_text, temp, temp2, temp3, true);
|
||||
font::print_wrap(PR_CEN | PR_COLORGLYPH_BRI(brightness) | PR_BOR, -1, 11-(lines-1)*5, top_text, temp, temp2, temp3);
|
||||
}
|
||||
if (bottom_text != NULL)
|
||||
{
|
||||
font::string_wordwrap(bottom_text, 304, &lines);
|
||||
PrintWrap(-1, 221-(lines-1)*5, bottom_text, temp, temp2, temp3, true);
|
||||
font::print_wrap(PR_CEN | PR_COLORGLYPH_BRI(brightness) | PR_BOR, -1, 221-(lines-1)*5, bottom_text, temp, temp2, temp3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user