… | |
… | |
2349 | /* |
2349 | /* |
2350 | * Actually do the drawing of the string here |
2350 | * Actually do the drawing of the string here |
2351 | */ |
2351 | */ |
2352 | rxvt_font *font = (*fontset[GET_STYLE (rend)])[GET_FONT (rend)]; |
2352 | rxvt_font *font = (*fontset[GET_STYLE (rend)])[GET_FONT (rend)]; |
2353 | |
2353 | |
2354 | if (back == Color_bg && have_bg) |
2354 | if (have_bg && back == Color_bg) |
2355 | { |
2355 | { |
2356 | // this is very ugly, maybe push it into ->draw? |
2356 | // this is very ugly, maybe push it into ->draw? |
2357 | |
2357 | |
2358 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2358 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2359 | if (text[i] != ' ') |
2359 | if (text[i] != ' ') |
2360 | { |
2360 | { |
2361 | font->draw (*drawable, xpixel, ypixel, text, count, fore, -1); |
2361 | font->draw (*drawable, xpixel, ypixel, text, count, fore, Color_transparent); |
2362 | goto did_clear; |
2362 | goto did_clear; |
2363 | } |
2363 | } |
2364 | |
2364 | |
2365 | CLEAR_CHARS (xpixel, ypixel, count); |
2365 | CLEAR_CHARS (xpixel, ypixel, count); |
2366 | did_clear: ; |
2366 | did_clear: ; |