Completely remove Graphics::PrintAlpha and Graphics::bprintalpha

Only four deprecated functions remain:
- Graphics::Print
- Graphics::PrintWrap
- Graphics::bigprint
- Graphics::bprint

Graphics::bprint is the least-used one of them, and after that, the
other functions are used a LOT, but it'll be a lot faster to go through
them, since I have less and less flags to worry about. I'll probably
start using Vim macros again like I did for loc::gettext()ing strings,
or maybe I'll automate this completely.
This commit is contained in:
Dav999-v
2023-01-17 18:37:35 +01:00
committed by Misa Elizabeth Kai
parent 9749858365
commit d784f7f61a
3 changed files with 1 additions and 23 deletions

View File

@@ -345,15 +345,6 @@ void Graphics::Print( int x, int y, const std::string& text, int r, int g, int b
font::print(0, x, y, text, r, g, b);
}
void Graphics::PrintAlpha( int x, int y, const std::string& text, int r, int g, int b, int a, bool cen /*= false*/ )
{
// DEPRECATED
if (cen)
font::print(PR_ALPHA(a) | PR_CEN, -1, y, text, r, g, b);
else
font::print(PR_ALPHA(a), x, y, text, r, g, b);
}
int Graphics::PrintWrap(
const int x,
int y,
@@ -391,15 +382,6 @@ void Graphics::bprint( int x, int y, const std::string& text, int r, int g, int
font::print(PR_BOR, x, y, text, r, g, b);
}
void Graphics::bprintalpha( int x, int y, const std::string& text, int r, int g, int b, int a, bool cen /*= false*/ )
{
// DEPRECATED
if (cen)
font::print(PR_ALPHA(a) | PR_CEN | PR_BOR, -1, y, text, r, g, b);
else
font::print(PR_ALPHA(a) | PR_BOR, x, y, text, r, g, b);
}
void Graphics::printcrewname( int x, int y, int t )
{
//Print the name of crew member t in the right colour