Skip to content

Commit

Permalink
fix styles for shud obituaries (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
scoqx authored Dec 30, 2024
1 parent e3ccb1f commit 01c10fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/cgame/cg_superhud_element_obituaries.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ static void CG_SHUDStylesObituaries_Bars(float x, float y, float width, float he
if (style == 1) // colored background
{
color[3] = 0.1f;
CG_FillRect(x - 2, y - height - 2, width + 4, height + 4, color);
CG_FillRect(x - 2, y - ((height + 4) / 2), width + 4, height + 4, color);
}
else if (style == 2) // colored underline
{
CG_FillRect(x, y + 2, width, 1, color);
CG_FillRect(x, y + (height / 2), width, 1, color);
}
else
{
Expand Down

0 comments on commit 01c10fc

Please sign in to comment.