honour text color setting
authorDerek Foreman <manmower@gmail.com>
Mon, 2 Jun 2003 01:45:07 +0000 (01:45 +0000)
committerDerek Foreman <manmower@gmail.com>
Mon, 2 Jun 2003 01:45:07 +0000 (01:45 +0000)
glft/render.c

index 354153933e70848a07f72009a30f6e7c75cd2c18..730e47fb2fb204a5bf9d3b91f4c9249aafd0c0ce 100644 (file)
@@ -1,6 +1,7 @@
 #include "render.h"
 #include "font.h"
 #include "debug.h"
+#include "glft.h"
 #include <glib.h>
 #include <GL/glx.h>
 
@@ -60,6 +61,7 @@ void GlftRenderString(struct GlftFont *font, const char *str, int bytes,
         return;
     }
 
+    glColor4f(color->r, color->g, color->b, color->a);
     glPushMatrix();
     glTranslatef(x, y, 0.0);
     c = str;