add todo for health/ammo ultrawide inset

This commit is contained in:
pierow 2024-05-10 07:23:18 -04:00
parent 6fd6cb8b8b
commit a6c6f8c8e9
2 changed files with 6 additions and 0 deletions

View file

@ -1400,6 +1400,9 @@ int CHudAmmo::Draw(float flTime)
int initialX = gHUD.GetWidth();
if (hud_ammo_x && hud_ammo_x->value != 0.0f)
{
//TODO: Inset position for ultrawide monitors.
//if (gHUD.GetWidth() > (gHUD.GetHeight() * 1.78f)){}
initialX *= min(max(0.0f, hud_ammo_x->value), 1.0f);
}

View file

@ -312,6 +312,9 @@ int CHudHealth::Draw(float flTime)
}
else
{
//TODO: Inset position for ultrawide monitors.
//if (gHUD.GetWidth() > (gHUD.GetHeight() * 1.78f)){}
x = CrossWidth / 2;
}
int initialY = gHUD.GetHeight();