mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-22 17:41:11 +00:00
This commit is contained in:
parent
6f95cebb11
commit
0ec2c2a26c
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue