… | |
… | |
1754 | { |
1754 | { |
1755 | bool found = false; |
1755 | bool found = false; |
1756 | |
1756 | |
1757 | for (int i = 0; i < nrow; i++) |
1757 | for (int i = 0; i < nrow; i++) |
1758 | { |
1758 | { |
1759 | int col = 0; |
|
|
1760 | rend_t *drp = drawn_buf[i].r; |
1759 | rend_t *drp = drawn_buf[i].r; |
1761 | |
1760 | |
1762 | for (; col < ncol; col++, drp++) |
1761 | for (int col = 0; col < ncol; col++, drp++) |
1763 | if ((*drp & mask) == value) |
1762 | if ((*drp & mask) == value) |
1764 | { |
1763 | { |
1765 | found = true; |
1764 | found = true; |
1766 | *drp = ~value; |
1765 | *drp = ~value; |
1767 | } |
1766 | } |
… | |
… | |
2258 | && RS_SAME (rend, srp[text - stp - 1])) |
2257 | && RS_SAME (rend, srp[text - stp - 1])) |
2259 | text--, count++, xpixel -= fwidth; |
2258 | text--, count++, xpixel -= fwidth; |
2260 | |
2259 | |
2261 | // force redraw after "careful" characters to avoid pixel droppings |
2260 | // force redraw after "careful" characters to avoid pixel droppings |
2262 | for (int i = 0; srp[col + i] & RS_Careful && col + i < ncol - 1; i++) |
2261 | for (int i = 0; srp[col + i] & RS_Careful && col + i < ncol - 1; i++) |
2263 | drp[col + i + 1] = ~srp[col + i + 1]; |
2262 | drp[col + i + 1] = srp[col + i + 1] ^ RS_redraw; |
2264 | |
2263 | |
2265 | // force redraw before "careful" characters to avoid pixel droppings |
2264 | // force redraw before "careful" characters to avoid pixel droppings |
2266 | for (int i = 0; srp[text - stp - i] & RS_Careful && text - i > stp; i++) |
2265 | for (int i = 0; srp[text - stp - i] & RS_Careful && text - i > stp; i++) |
2267 | drp[text - stp - i - 1] = ~srp[text - stp - i - 1]; |
2266 | drp[text - stp - i - 1] = srp[text - stp - i - 1] ^ RS_redraw; |
2268 | #endif |
2267 | #endif |
2269 | |
2268 | |
2270 | bool invert = rend & RS_RVid; |
2269 | bool invert = rend & RS_RVid; |
2271 | |
2270 | |
2272 | #ifndef NO_BOLD_UNDERLINE_REVERSE |
2271 | #ifndef NO_BOLD_UNDERLINE_REVERSE |