… | |
… | |
1871 | { |
1871 | { |
1872 | clearfirst = clearlast = 1; |
1872 | clearfirst = clearlast = 1; |
1873 | refresh_type &= ~REFRESH_BOUNDS; |
1873 | refresh_type &= ~REFRESH_BOUNDS; |
1874 | } |
1874 | } |
1875 | |
1875 | |
1876 | #if defined(XPM_BACKGROUND) |
1876 | #ifdef XPM_BACKGROUND |
1877 | must_clear |= (bgPixmap.pixmap != None); |
1877 | must_clear |= (bgPixmap.pixmap != None); |
1878 | #endif |
1878 | #endif |
1879 | #if defined(TRANSPARENT) |
1879 | #ifdef TRANSPARENT |
1880 | must_clear |= ((Options & Opt_transparent) && am_transparent); |
1880 | must_clear |= ((Options & Opt_transparent) && am_transparent); |
1881 | #endif |
1881 | #endif |
1882 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
1882 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
1883 | |
1883 | |
1884 | /* |
1884 | /* |
… | |
… | |
2166 | |
2166 | |
2167 | if (back == Color_bg) |
2167 | if (back == Color_bg) |
2168 | { |
2168 | { |
2169 | if (must_clear) |
2169 | if (must_clear) |
2170 | { |
2170 | { |
|
|
2171 | CLEAR_CHARS (xpixel, ypixel, count); |
|
|
2172 | |
2171 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2173 | for (i = 0; i < count; i++) /* don't draw empty strings */ |
2172 | if (text[i] != ' ') |
2174 | if (text[i] != ' ') |
2173 | { |
2175 | { |
2174 | font->draw (xpixel, ypixel, text, count, fore, -1); |
2176 | font->draw (xpixel, ypixel, text, count, fore, -1); |
2175 | goto nodraw; |
2177 | break; |
2176 | } |
2178 | } |
2177 | |
|
|
2178 | CLEAR_CHARS (xpixel, ypixel, count); |
|
|
2179 | nodraw: ; |
|
|
2180 | } |
2179 | } |
2181 | else |
2180 | else |
2182 | font->draw (xpixel, ypixel, text, count, fore, Color_bg); |
2181 | font->draw (xpixel, ypixel, text, count, fore, Color_bg); |
2183 | } |
2182 | } |
2184 | else |
2183 | else |