Completely remove Graphics::bigprint

The last two deprecated functions are:
- Graphics::Print
- Graphics::PrintWrap

These are used a lot, but they're relatively easy to replace, since the
only flag I probably have to immediately worry about is PR_CEN. I do
often need to add PR_FONT_* flags but I don't need to add any
PR_2X/PR_3X/PR_4X anymore.
This commit is contained in:
Dav999-v
2023-01-18 23:04:47 +01:00
committed by Misa Elizabeth Kai
parent ddaabb3efe
commit d2461c90ce
4 changed files with 133 additions and 143 deletions

View File

@@ -315,7 +315,7 @@ static void editormenurender(int tr, int tg, int tb)
switch (game.currentmenuname)
{
case Menu::ed_settings:
graphics.bigprint( -1, 75, loc::gettext("Map Settings"), tr, tg, tb, true);
font::print(PR_2X | PR_CEN, -1, 75, loc::gettext("Map Settings"), tr, tg, tb);
if (game.currentmenuoption == 3)
{
if (!game.ghostsenabled)
@@ -330,16 +330,16 @@ static void editormenurender(int tr, int tg, int tb)
{
if(ed.entframe<2)
{
graphics.bigprint( -1, 35, key.keybuffer+"_", tr, tg, tb, true);
font::print(PR_2X | PR_CEN, -1, 35, key.keybuffer+"_", tr, tg, tb);
}
else
{
graphics.bigprint( -1, 35, key.keybuffer+" ", tr, tg, tb, true);
font::print(PR_2X | PR_CEN, -1, 35, key.keybuffer+" ", tr, tg, tb);
}
}
else
{
graphics.bigprint( -1, 35, translate_title(cl.title), tr, tg, tb, true);
font::print(PR_2X | PR_CEN, -1, 35, translate_title(cl.title), tr, tg, tb);
}
std::string creator;
if(ed.creatormod)