--- deliantra/Deliantra-Client/pango-render.c 2007/08/11 12:07:54 1.10 +++ deliantra/Deliantra-Client/pango-render.c 2007/08/12 08:44:22 1.11 @@ -209,21 +209,13 @@ x += g->left; y -= g->top; - x1 = g->tex.x * (1. / TC_WIDTH ); - y1 = g->tex.y * (1. / TC_HEIGHT); - x2 = g->tex.w * (1. / TC_WIDTH ) + x1; - y2 = g->tex.h * (1. / TC_HEIGHT) + y1; - if (g->tex.name != renderer->key.texname) { renderer->key.texname = g->tex.name; renderer->arr = rc_array (renderer->rc, &renderer->key); } - rc_t2f_v3f (renderer->arr, x1, y1, x , y , 0); - rc_t2f_v3f (renderer->arr, x2, y1, x + g->tex.w, y , 0); - rc_t2f_v3f (renderer->arr, x2, y2, x + g->tex.w, y + g->tex.h, 0); - rc_t2f_v3f (renderer->arr, x1, y2, x , y + g->tex.h, 0); + rc_glyph (renderer->arr, g->tex.x, g->tex.y, g->tex.w, g->tex.h, x, y); } static void @@ -314,7 +306,7 @@ renderer->strikethrough = FALSE; gl->key.mode = GL_QUADS; - gl->key.format = GL_T2F_V3F; + gl->key.format = 0; // glyphs gl->key.texname = 0; for (l = run->item->analysis.extra_attrs; l; l = l->next)