… | |
… | |
1269 | void |
1269 | void |
1270 | rxvt_font_xft::draw (rxvt_drawable &d, int x, int y, |
1270 | rxvt_font_xft::draw (rxvt_drawable &d, int x, int y, |
1271 | const text_t *text, int len, |
1271 | const text_t *text, int len, |
1272 | int fg, int bg) |
1272 | int fg, int bg) |
1273 | { |
1273 | { |
1274 | clear_rect (d, x, y, r->fwidth * len, r->fheight, bg); |
|
|
1275 | |
|
|
1276 | XGlyphInfo extents; |
1274 | XGlyphInfo extents; |
1277 | XftGlyphSpec *enc = (XftGlyphSpec *)get_enc_buf (len * sizeof (XftGlyphSpec)); |
1275 | XftGlyphSpec *enc = (XftGlyphSpec *)get_enc_buf (len * sizeof (XftGlyphSpec)); |
1278 | XftGlyphSpec *ep = enc; |
1276 | XftGlyphSpec *ep = enc; |
|
|
1277 | |
|
|
1278 | clear_rect (d, x, y, r->fwidth * len, r->fheight, bg); |
1279 | |
1279 | |
1280 | // cut trailing spaces |
1280 | // cut trailing spaces |
1281 | while (len && text [len - 1] == ' ') |
1281 | while (len && text [len - 1] == ' ') |
1282 | len--; |
1282 | len--; |
1283 | |
1283 | |