ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.214 by root, Tue Jan 31 19:53:30 2006 UTC vs.
Revision 1.215 by root, Wed Feb 1 18:36:48 2006 UTC

950#endif /* XTERM_COLOR_CHANGE */ 950#endif /* XTERM_COLOR_CHANGE */
951 951
952void 952void
953rxvt_term::recolour_cursor () 953rxvt_term::recolour_cursor ()
954{ 954{
955 XColor xcol[2]; 955 XColor fg, bg;
956 956
957 xcol[0].pixel = ISSET_PIXCOLOR (Color_pointer_fg) 957 (ISSET_PIXCOLOR (Color_pointer_fg)
958 ? pix_colors_focused[Color_pointer_fg] 958 ? pix_colors_focused[Color_pointer_fg]
959 : pix_colors_focused[Color_fg]; 959 : pix_colors_focused[Color_fg]).get (fg);
960
960 xcol[1].pixel = ISSET_PIXCOLOR (Color_pointer_bg) 961 (ISSET_PIXCOLOR (Color_pointer_bg)
961 ? pix_colors_focused[Color_pointer_bg] 962 ? pix_colors_focused[Color_pointer_bg]
962 : pix_colors_focused[Color_bg]; 963 : pix_colors_focused[Color_bg]).get (bg);
963 964
964 XQueryColors (xdisp, cmap, xcol, 2);
965 XRecolorCursor (xdisp, TermWin_cursor, xcol + 0, xcol + 1); 965 XRecolorCursor (xdisp, TermWin_cursor, &fg, &bg);
966} 966}
967 967
968/*----------------------------------------------------------------------*/ 968/*----------------------------------------------------------------------*/
969/* 969/*
970 * find if fg/bg matches any of the normal (low-intensity) colors 970 * find if fg/bg matches any of the normal (low-intensity) colors

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines