mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
V_GetFontSpecification: bunch menu font
This commit is contained in:
parent
af28f30d84
commit
6d929b6be9
1 changed files with 20 additions and 0 deletions
|
|
@ -2175,6 +2175,20 @@ static inline fixed_t BunchedCharacterDim(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline fixed_t MenuCharacterDim(
|
||||||
|
fixed_t scale,
|
||||||
|
fixed_t chw,
|
||||||
|
INT32 hchw,
|
||||||
|
INT32 dupx,
|
||||||
|
fixed_t * cwp)
|
||||||
|
{
|
||||||
|
(void)chw;
|
||||||
|
(void)hchw;
|
||||||
|
(void)dupx;
|
||||||
|
(*cwp) = FixedMul(std::max(1, (*cwp) - 2) << FRACBITS, scale);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline fixed_t GamemodeCharacterDim(
|
static inline fixed_t GamemodeCharacterDim(
|
||||||
fixed_t scale,
|
fixed_t scale,
|
||||||
fixed_t chw,
|
fixed_t chw,
|
||||||
|
|
@ -2352,6 +2366,12 @@ static void V_GetFontSpecification(int fontno, INT32 flags, fontspec_t *result)
|
||||||
else
|
else
|
||||||
result->dim_fn = BunchedCharacterDim;
|
result->dim_fn = BunchedCharacterDim;
|
||||||
break;
|
break;
|
||||||
|
case MENU_FONT:
|
||||||
|
if (result->chw)
|
||||||
|
result->dim_fn = CenteredCharacterDim;
|
||||||
|
else
|
||||||
|
result->dim_fn = MenuCharacterDim;
|
||||||
|
break;
|
||||||
case KART_FONT:
|
case KART_FONT:
|
||||||
if (result->chw)
|
if (result->chw)
|
||||||
result->dim_fn = FixedCharacterDim;
|
result->dim_fn = FixedCharacterDim;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue