… | |
… | |
2248 | int ypixel = (int)Row2Pixel (row); |
2248 | int ypixel = (int)Row2Pixel (row); |
2249 | |
2249 | |
2250 | for (col = 0; col < ncol; col++) |
2250 | for (col = 0; col < ncol; col++) |
2251 | { |
2251 | { |
2252 | /* compare new text with old - if exactly the same then continue */ |
2252 | /* compare new text with old - if exactly the same then continue */ |
2253 | if (stp[col] == dtp[col] /* Must match characters to skip. */ |
2253 | if (stp[col] == dtp[col] && RS_SAME (srp[col], drp[col])) |
2254 | && (RS_SAME (srp[col], drp[col]) /* Either rendition the same or */ |
|
|
2255 | || (stp[col] == ' ' /* space w/ no background change */ |
|
|
2256 | && GET_BGATTR (srp[col]) == GET_BGATTR (drp[col])))) |
|
|
2257 | continue; |
2254 | continue; |
2258 | |
2255 | |
2259 | // redraw one or more characters |
2256 | // redraw one or more characters |
2260 | |
2257 | |
2261 | // seek to the beginning of wide characters |
2258 | // seek to the beginning of wide characters |
… | |
… | |
2554 | XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); |
2551 | XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); |
2555 | } |
2552 | } |
2556 | |
2553 | |
2557 | XClearWindow (dpy, parent); |
2554 | XClearWindow (dpy, parent); |
2558 | |
2555 | |
2559 | if (scrollBar.win) |
2556 | if (scrollBar.state) |
2560 | { |
2557 | { |
2561 | if (transparent) |
2558 | if (transparent) |
2562 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2559 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2563 | else |
2560 | else |
2564 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[scrollBar.color ()]); |
2561 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[scrollBar.color ()]); |