[iortcw] 17/89: All: Fix overdraw in CG_DrawRect

Simon McVittie smcv at debian.org
Fri Sep 8 10:44:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51b
in repository iortcw.

commit f58ab93fccf82eb2ae8cc748538f4855fa65ee71
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Jun 13 15:57:31 2017 -0400

    All: Fix overdraw in CG_DrawRect
---
 MP/code/cgame/cg_drawtools.c | 2 +-
 SP/code/cgame/cg_drawtools.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/cgame/cg_drawtools.c b/MP/code/cgame/cg_drawtools.c
index f24599b..ea2489b 100644
--- a/MP/code/cgame/cg_drawtools.c
+++ b/MP/code/cgame/cg_drawtools.c
@@ -363,7 +363,7 @@ void CG_DrawRect( float x, float y, float width, float height, float size, const
 	trap_R_SetColor( hudAlphaColor );
 
 	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 );
 }
diff --git a/SP/code/cgame/cg_drawtools.c b/SP/code/cgame/cg_drawtools.c
index bed8394..7af0b21 100644
--- a/SP/code/cgame/cg_drawtools.c
+++ b/SP/code/cgame/cg_drawtools.c
@@ -300,7 +300,7 @@ void CG_DrawRect( float x, float y, float width, float height, float size, const
 	trap_R_SetColor( hudAlphaColor );
 
 	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 );
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list