From a738cb95926a78f23716e8310dedf07dab17a2e0 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 7 Jun 2017 20:40:14 -0500 Subject: [PATCH] Fix overdraw in CG_DrawRect It was noticeable in the corners when alpha was less than 1. --- code/cgame/cg_drawtools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cgame/cg_drawtools.c b/code/cgame/cg_drawtools.c index c0ce1ef8..fb9e29a4 100644 --- a/code/cgame/cg_drawtools.c +++ b/code/cgame/cg_drawtools.c @@ -91,7 +91,7 @@ void CG_DrawRect( float x, float y, float width, float height, float size, const trap_R_SetColor( color ); CG_DrawTopBottom(x, y, width, height, size); - CG_DrawSides(x, y, width, height, size); + CG_DrawSides(x, y + size, width, height - size * 2, size); trap_R_SetColor( NULL ); }