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

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.23 by pcg, Sat Jan 31 02:31:17 2004 UTC vs.
Revision 1.24 by pcg, Sat Jan 31 04:12:10 2004 UTC

1712 * the top of the screen 1712 * the top of the screen
1713 */ 1713 */
1714int 1714int
1715rxvt_term::scr_move_to (int y, int len) 1715rxvt_term::scr_move_to (int y, int len)
1716{ 1716{
1717 long p = 0; 1717 long p = 0;
1718 uint16_t oldviewstart; 1718 uint16_t oldviewstart;
1719 1719
1720 oldviewstart = TermWin.view_start; 1720 oldviewstart = TermWin.view_start;
1721 if (y < len) { 1721 if (y < len) {
1722 p = (TermWin.nrow + TermWin.nscrolled) * (len - y) / len; 1722 p = (TermWin.nrow + TermWin.nscrolled) * (len - y) / len;
1723 p -= (long)(TermWin.nrow - 1); 1723 p -= (long)(TermWin.nrow - 1);
2117 int back = GET_BGCOLOR (rend); // desired background 2117 int back = GET_BGCOLOR (rend); // desired background
2118 2118
2119 rend = GET_ATTR (rend); 2119 rend = GET_ATTR (rend);
2120 2120
2121 rvid = !!(rend & RS_RVid); 2121 rvid = !!(rend & RS_RVid);
2122 if (rvid)
2123 {
2124 SWAP_IT(fore, back, int);
2125
2126#ifndef NO_BOLD_UNDERLINE_REVERSE
2127 if (ISSET_PIXCOLOR (Color_RV)
2128# ifndef NO_CURSORCOLOR
2129 && !ISSET_PIXCOLOR (Color_cursor)
2130# endif
2131 )
2132 back = Color_RV;
2133#endif
2134 }
2122#ifdef TEXT_BLINK 2135#ifdef TEXT_BLINK
2123 if (rend & RS_Blink) 2136 if (rend & RS_Blink)
2124 { 2137 {
2125 if (!text_blink_ev.active) 2138 if (!text_blink_ev.active)
2126 { 2139 {
2129 } 2142 }
2130 else if (hidden_text) 2143 else if (hidden_text)
2131 fore = back; 2144 fore = back;
2132 } 2145 }
2133#endif 2146#endif
2134 if (rvid)
2135 {
2136 SWAP_IT(fore, back, int);
2137
2138#ifndef NO_BOLD_UNDERLINE_REVERSE
2139 if (ISSET_PIXCOLOR (Color_RV)
2140# ifndef NO_CURSORCOLOR
2141 && !ISSET_PIXCOLOR (Color_cursor)
2142# endif
2143 )
2144 back = Color_RV;
2145#endif
2146 }
2147#ifndef NO_BOLD_UNDERLINE_REVERSE 2147#ifndef NO_BOLD_UNDERLINE_REVERSE
2148 else if (rend & RS_Bold) 2148 else if (rend & RS_Bold)
2149 { 2149 {
2150 if (ISSET_PIXCOLOR (Color_BD)) 2150 if (ISSET_PIXCOLOR (Color_BD))
2151 fore = Color_BD; 2151 fore = Color_BD;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines