… | |
… | |
2476 | |
2476 | |
2477 | while (col + cursorwidth < ncol |
2477 | while (col + cursorwidth < ncol |
2478 | && drawn_buf[oldcursor.row].t[col + cursorwidth] == NOCHAR) |
2478 | && drawn_buf[oldcursor.row].t[col + cursorwidth] == NOCHAR) |
2479 | cursorwidth++; |
2479 | cursorwidth++; |
2480 | |
2480 | |
2481 | #ifndef NO_CURSORCOLOR |
|
|
2482 | if (ISSET_PIXCOLOR (Color_cursor)) |
|
|
2483 | XSetForeground (dpy, gc, pix_colors[Color_cursor]); |
|
|
2484 | else |
|
|
2485 | #endif |
|
|
2486 | XSetForeground (dpy, gc, pix_colors[ccol1]); |
2481 | XSetForeground (dpy, gc, pix_colors[ccol1]); |
2487 | |
2482 | |
2488 | XDrawRectangle (dpy, vt, gc, |
2483 | XDrawRectangle (dpy, vt, gc, |
2489 | Col2Pixel (col), |
2484 | Col2Pixel (col), |
2490 | Row2Pixel (oldcursor.row), |
2485 | Row2Pixel (oldcursor.row), |
2491 | (unsigned int) (Width2Pixel (cursorwidth) - 1), |
2486 | (unsigned int) (Width2Pixel (cursorwidth) - 1), |