kludge fix for tex height, still needs proper vertical alignment
authorDerek Foreman <manmower@gmail.com>
Tue, 3 Jun 2003 14:01:48 +0000 (14:01 +0000)
committerDerek Foreman <manmower@gmail.com>
Tue, 3 Jun 2003 14:01:48 +0000 (14:01 +0000)
render2/texture.c

index 0e0cac87dd300c0bd304029ca7bd41bfe78fea3f..e0860bed7549806b108a487f3bc28812b5ef8cca 100644 (file)
@@ -100,8 +100,10 @@ void RrTexturePaint(struct RrSurface *sur, struct RrTexture *tex)
         col.g = tex->data.text.color.g;
         col.b = tex->data.text.color.b;
         col.a = tex->data.text.color.a;
+
         GlftRenderString(tex->data.text.font->font, tex->data.text.string, 
-                         strlen(tex->data.text.string), &col, 0, 0);
+                         strlen(tex->data.text.string), &col,
+                         RrSurfaceX(sur) + 2, RrSurfaceY(sur) + 4);
         break;
     }
     glDisable(GL_TEXTURE_2D);