… | |
… | |
409 | prev_nrow = nrow; |
409 | prev_nrow = nrow; |
410 | prev_ncol = ncol; |
410 | prev_ncol = ncol; |
411 | |
411 | |
412 | tabs = (char *)rxvt_malloc (ncol * sizeof (char)); |
412 | tabs = (char *)rxvt_malloc (ncol * sizeof (char)); |
413 | |
413 | |
414 | for (int col = ncol; col--; ) |
414 | for (int col = ncol; --col; ) |
415 | tabs [col] = col % TABSIZE == 0; |
415 | tabs [col] = col % TABSIZE == 0; |
416 | |
416 | |
417 | if (current_screen != PRIMARY) |
417 | if (current_screen != PRIMARY) |
418 | scr_swap_screen (); |
418 | scr_swap_screen (); |
419 | |
419 | |
… | |
… | |
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 == fore) |
|
|
2355 | font->clear_rect (*drawable, xpixel, ypixel, fwidth * count, fheight, back); |
|
|
2356 | else if (back == Color_bg && have_bg) |
2354 | if (back == Color_bg && have_bg) |
2357 | { |
2355 | { |
2358 | // this is very ugly, maybe push it into ->draw? |
2356 | // this is very ugly, maybe push it into ->draw? |
2359 | |
2357 | |
2360 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2358 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2361 | if (text[i] != ' ') |
2359 | if (text[i] != ' ') |