mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
restore MN_StringHeight function (#1662)
This commit is contained in:
parent
7c174fef72
commit
2f98be6785
@ -3720,7 +3720,15 @@ void MN_SetHUFontKerning(void)
|
||||
|
||||
int MN_StringHeight(const char *string)
|
||||
{
|
||||
return SHORT(hu_font[0]->height);
|
||||
int height = SHORT(hu_font[0]->height);
|
||||
for (int i = 0; string[i]; ++i)
|
||||
{
|
||||
if (string[i] == '\n')
|
||||
{
|
||||
height += SHORT(hu_font[0]->height);
|
||||
}
|
||||
}
|
||||
return height;
|
||||
}
|
||||
|
||||
// [FG] alternative text for missing menu graphics lumps
|
||||
|
Loading…
x
Reference in New Issue
Block a user