]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
Added colored string support to centerprint.
[xonotic/darkplaces.git] / cl_screen.c
index f9f4fe2219543442624467fb83b5bf1fbadd2507..3bfaa3e1a41dadc589c0644814c2a7122bff8c1a 100644 (file)
@@ -199,6 +199,7 @@ void SCR_DrawCenterString (void)
        int             l;
        int             x, y;
        int             remaining;
+       int             color;
 
 // the finale prints the characters one at a time
        if (cl.intermission)
@@ -214,6 +215,7 @@ void SCR_DrawCenterString (void)
        else
                y = 48;
 
+       color = -1;
        do
        {
        // scan the width of the line
@@ -225,7 +227,7 @@ void SCR_DrawCenterString (void)
                {
                        if (remaining < l)
                                l = remaining;
-                       DrawQ_String(x, y, start, l, 8, 8, 1, 1, 1, 1, 0);
+                       DrawQ_ColoredString(x, y, start, l, 8, 8, 1, 1, 1, 1, 0, &color);
                        remaining -= l;
                        if (remaining <= 0)
                                return;