mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- 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
|
@ -1352,8 +1352,8 @@ FSinglePicFont::FSinglePicFont(const char *picname)
|
|||
FTexture *pic = TexMan[picnum];
|
||||
|
||||
Name = copystring(picname);
|
||||
FontHeight = pic->GetHeight();
|
||||
SpaceWidth = pic->GetWidth();
|
||||
FontHeight = pic->GetScaledHeight();
|
||||
SpaceWidth = pic->GetScaledWidth();
|
||||
GlobalKerning = 0;
|
||||
FirstChar = LastChar = 'A';
|
||||
ActiveColors = 0;
|
||||
|
|
|
@ -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…
Reference in a new issue