- replaced more copystrings with FString.

This commit is contained in:
Christoph Oelckers 2016-07-28 09:06:49 +02:00
commit 759753eadc
4 changed files with 12 additions and 16 deletions

View file

@ -479,7 +479,6 @@ void DOptionMenu::Drawer ()
FOptionMenuItem::~FOptionMenuItem()
{
if (mLabel != NULL) delete [] mLabel;
}
int FOptionMenuItem::Draw(FOptionMenuDescriptor *desc, int y, int indent, bool selected)
@ -507,14 +506,14 @@ int FOptionMenuItem::GetIndent()
{
return 0;
}
const char *label = mLabel;
const char *label = mLabel.GetChars();
if (*label == '$') label = GStrings(label+1);
return SmallFont->StringWidth(label);
}
void FOptionMenuItem::drawLabel(int indent, int y, EColorRange color, bool grayed)
{
const char *label = mLabel;
const char *label = mLabel.GetChars();
if (*label == '$') label = GStrings(label+1);
int overlay = grayed? MAKEARGB(96,48,0,0) : 0;