- added sections for DISTRIBUTION MAINTAINERS and about
SETUID/SETGID to the FAQ.
- - increased xft drawing speed for problematic fonts, speed
- seems to be entirely server-dependent now.
+ - increased xft drawing speed for problematic fonts. The effect
+ will likely be small as 99% of the xft slowness is server-related.
- selection, selection-popup and option-popup extensions
enabled by default.
- perl: much increased functionality, better overlays, popup support
const text_t *text, int len,
int fg, int bg)
{
- clear_rect (d, x, y, r->fwidth * len, r->fheight, bg);
-
XGlyphInfo extents;
- XftGlyphSpec *enc = (XftGlyphSpec *) get_enc_buf (len * sizeof (XftGlyphSpec));
+ XftGlyphSpec *enc = (XftGlyphSpec *)get_enc_buf (len * sizeof (XftGlyphSpec));
XftGlyphSpec *ep = enc;
+ clear_rect (d, x, y, r->fwidth * len, r->fheight, bg);
+
// cut trailing spaces
while (len && text [len - 1] == ' ')
len--;
if (fc != ' ') // skip spaces
{
- FT_UInt gl = XftCharIndex (d.display->display, f, fc);
- XftGlyphExtents (d.display->display, f, &gl, 1, &extents);
+ FT_UInt glyph = XftCharIndex (d.display->display, f, fc);
+ XftGlyphExtents (d.display->display, f, &glyph, 1, &extents);
- ep->glyph = gl;
+ ep->glyph = glyph;
ep->x = x + (cwidth - extents.xOff >> 1);
ep->y = y + ascent;
ep++;