- fixed some places where FStrings were incorrectly used.
- replace all implicit conversions from FString to const char * in the header files (so that it can be test compiled with the implicit type conversion turned off without throwing thousands of identical errors.)
This commit is contained in:
parent
c8d25378d5
commit
8da6483223
10 changed files with 19 additions and 19 deletions
|
|
@ -504,7 +504,7 @@ public:
|
|||
|
||||
int Draw(FOptionMenuDescriptor *desc, int y, int indent, bool selected)
|
||||
{
|
||||
const char *txt = mCurrent? (const char*)mAltText : mLabel;
|
||||
const char *txt = mCurrent? mAltText.GetChars() : mLabel;
|
||||
if (*txt == '$') txt = GStrings(txt + 1);
|
||||
int w = SmallFont->StringWidth(txt) * CleanXfac_1;
|
||||
int x = (screen->GetWidth() - w) / 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue