float DrawQ_String(float startx, float starty, const char *text, int maxlen, float w, float h, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor, qboolean ignorecolorcodes)
{
- int i, num, shadow, colorindex;
+ int i, num, shadow, colorindex = STRING_COLOR_DEFAULT;
float x = startx, y, s, t, u, v;
float *av, *at, *ac;
float color[4];
GL_LockArrays(0, 0);
}
}
+
+ if (outcolor)
+ *outcolor = colorindex;
+
// note: this relies on the proper text (not shadow) being drawn last
return x;
}