Fix overdraw in CG_DrawRect

It was noticeable in the corners when alpha was less than 1.
This commit is contained in:
Zack Middleton 2017-06-07 20:40:14 -05:00
parent 1a8bf792e7
commit a738cb9592

View file

@ -91,7 +91,7 @@ void CG_DrawRect( float x, float y, float width, float height, float size, const
trap_R_SetColor( color ); trap_R_SetColor( color );
CG_DrawTopBottom(x, y, width, height, size); 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 ); trap_R_SetColor( NULL );
} }