From 01c10fcbafb4a8408070b58db20c4471dcd30857 Mon Sep 17 00:00:00 2001 From: diwoc <108992394+scoqx@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:16:14 +0300 Subject: [PATCH] fix styles for shud obituaries (#25) --- code/cgame/cg_superhud_element_obituaries.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/cgame/cg_superhud_element_obituaries.c b/code/cgame/cg_superhud_element_obituaries.c index cbd88c0..5d7db70 100644 --- a/code/cgame/cg_superhud_element_obituaries.c +++ b/code/cgame/cg_superhud_element_obituaries.c @@ -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 {