[ioquake3] 121/136: Fix overdraw in CG_DrawRect
Simon McVittie
smcv at debian.org
Thu Jun 15 09:09:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit a738cb95926a78f23716e8310dedf07dab17a2e0
Author: Zack Middleton <zack at cloemail.com>
Date: Wed Jun 7 20:40:14 2017 -0500
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 c0ce1ef..fb9e29a 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 );
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list