- Fixed: FSinglePicFont should set the character size by the scaled size of the texture.
SVN r2189 (trunk)
This commit is contained in:
parent
758327f4b3
commit
fad9f251ec
2 changed files with 4 additions and 4 deletions
|
|
@ -324,7 +324,7 @@ FBrokenLines *V_BreakLines (FFont *font, int maxwidth, const BYTE *string)
|
|||
|
||||
i = w = 0;
|
||||
|
||||
while ( (c = *string++) && i < 128 )
|
||||
while ( (c = *string++) && i < countof(lines) )
|
||||
{
|
||||
if (c == TEXTCOLOR_ESCAPE)
|
||||
{
|
||||
|
|
@ -400,7 +400,7 @@ FBrokenLines *V_BreakLines (FFont *font, int maxwidth, const BYTE *string)
|
|||
}
|
||||
|
||||
// String here is pointing one character after the '\0'
|
||||
if (i < 128 && --string - start >= 1)
|
||||
if (i < countof(lines) && --string - start >= 1)
|
||||
{
|
||||
const BYTE *s = start;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue