WISH: kick out xpm.C, replace by pixbuf
DUMB: support tex fonts
-TODO: clear_rect -1 transparency breaks -ip
8.0
- combining characters cleared the area instead of creating an overlay,
thus losing the ability to draw combining characters properly in most
*/
enum colour_list {
+ Color_none = -2,
+ Color_transparent = -1,
Color_fg = 0,
Color_bg,
minCOLOR, /* 2 */
dTermDisplay;
dTermGC;
- if (color == Color_bg)
+ if (color == Color_bg || color == Color_transparent)
XClearArea (disp, d, x, y, w, h, false);
else if (color >= 0)
{
? f1
: (*fs)[fs->find_font (cc->c2)];
- f2->draw (d, x, y, chrs, width, fg, -1);
+ f2->draw (d, x, y, chrs, width, fg, Color_none);
}
}
#endif
*/
rxvt_font *font = (*fontset[GET_STYLE (rend)])[GET_FONT (rend)];
- if (back == Color_bg && have_bg)
+ if (have_bg && back == Color_bg)
{
// this is very ugly, maybe push it into ->draw?
for (i = 0; i < count; i++) /* don't draw empty strings */
if (text[i] != ' ')
{
- font->draw (*drawable, xpixel, ypixel, text, count, fore, -1);
+ font->draw (*drawable, xpixel, ypixel, text, count, fore, Color_transparent);
goto did_clear;
}