… | |
… | |
572 | * Change the colour for following text |
572 | * Change the colour for following text |
573 | */ |
573 | */ |
574 | void |
574 | void |
575 | rxvt_term::scr_color (unsigned int color, int fgbg) |
575 | rxvt_term::scr_color (unsigned int color, int fgbg) |
576 | { |
576 | { |
577 | if (color > maxTermCOLOR) |
577 | if (!IN_RANGE_INC (color, minCOLOR, maxTermCOLOR)) |
578 | color = fgbg; |
578 | color = fgbg; |
579 | |
579 | |
580 | if (fgbg == Color_fg) |
580 | if (fgbg == Color_fg) |
581 | rstyle = SET_FGCOLOR (rstyle, color); |
581 | rstyle = SET_FGCOLOR (rstyle, color); |
582 | else |
582 | else |
… | |
… | |
2381 | /* |
2381 | /* |
2382 | * H: cleanup selection |
2382 | * H: cleanup selection |
2383 | */ |
2383 | */ |
2384 | scr_reverse_selection (); |
2384 | scr_reverse_selection (); |
2385 | |
2385 | |
2386 | if (refresh_type & SMOOTH_REFRESH) |
|
|
2387 | XFlush (display->display); |
|
|
2388 | |
|
|
2389 | num_scr = 0; |
2386 | num_scr = 0; |
2390 | num_scr_allow = 1; |
2387 | num_scr_allow = 1; |
2391 | } |
2388 | } |
2392 | |
2389 | |
2393 | void |
2390 | void |