This commit is contained in:
Andrei Drexler 2011-03-11 07:59:38 +00:00
parent 6f95cebb11
commit 0ec2c2a26c

View file

@ -142,6 +142,10 @@ void CG_DrawFuzzyRect(float x, float y, float w, float h, float corner, vec4_t c
float ycorner = corner * cgs.screenYScale;
CG_AdjustFrom640(&x, &y, &w, &h);
if (xcorner + xcorner > w)
xcorner = w * 0.5f;
if (ycorner + ycorner > h)
ycorner = h * 0.5f;
trap_R_SetColor(color);
@ -382,6 +386,9 @@ int CG_DrawStrlen(const char *str)
int count = 0;
int max = 0;
if (!str)
return 0;
while (*s) {
if (Q_IsColorString(s)) {
s += 2;