- replaced more copystrings with FString.
This commit is contained in:
parent
66006a5c14
commit
759753eadc
4 changed files with 12 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue