DUMB: support tex fonts
DO NOT USE, CURRENTLY TOTALLY BROKEN W.R.T. XFT FONTS
+TODO: document #aarrggbb or (better?) remove
9.0
- fix a crash bug where urxvtd would crash when urxvtc was called
with wrong arguments (I wish debian maintainers in general would
else if (color >= 0)
{
#if XFT
- bool done = false;
+ Picture dst;
# ifdef HAVE_BG_PIXMAP
- if (term->bgPixmap.pixmap && color >= 0 && !term->pix_colors[color].is_opaque ())
+ if (term->bgPixmap.pixmap
+ && color >= 0 && !term->pix_colors[color].is_opaque ()
+ && ((Picture dst = XftDrawPicture (d))))
{
- Picture dst = XftDrawPicture (d);
+ XClearArea (disp, d, x, y, w, h, false);
- if (dst != 0)
- {
- XClearArea (disp, d, x, y, w, h, false);
- Picture solid_color_pict = XftDrawSrcPicture (d, &term->pix_colors[color].c);
- XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, x, y, w, h);
- done = true;
- }
+ Picture solid_color_pict = XftDrawSrcPicture (d, &term->pix_colors[color].c);
+ XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, x, y, w, h);
}
+ else
# endif
- if (!done)
XftDrawRect (d, &term->pix_colors[color].c, x, y, w, h);
#else