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.300 by ayin, Sun Jan 27 22:48:33 2008 UTC vs.
Revision 1.305 by ayin, Thu Feb 21 10:30:24 2008 UTC

1992 return; 1992 return;
1993 1993
1994 /* 1994 /*
1995 * A: set up vars 1995 * A: set up vars
1996 */ 1996 */
1997 refresh_count = 0;
1998
1997 have_bg = 0; 1999 have_bg = 0;
1998 refresh_count = 0;
1999
2000#ifdef HAVE_BG_PIXMAP 2000#ifdef HAVE_BG_PIXMAP
2001 have_bg |= bgPixmap.pixmap != None; 2001 have_bg = bgPixmap.pixmap != None;
2002#endif 2002#endif
2003 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ 2003 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */
2004 2004
2005 /* 2005 /*
2006 * B: reverse any characters which are selected 2006 * B: reverse any characters which are selected
2477 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); 2477 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]);
2478 2478
2479 if (scrollBar.win) 2479 if (scrollBar.win)
2480 { 2480 {
2481 XSetWindowBackground (dpy, scrollBar.win, pix_colors[Color_border]); 2481 XSetWindowBackground (dpy, scrollBar.win, pix_colors[Color_border]);
2482 scrollBar.setIdle (); 2482 scrollBar.state = STATE_IDLE;
2483 scrollbar_show (0); 2483 scrollBar.show (0);
2484 } 2484 }
2485 2485
2486#endif
2487
2488 /* bgPixmap.apply () does not do the following : */
2486 scr_clear (); 2489 scr_clear ();
2487 scr_touch (true); 2490 scr_touch (true);
2488 want_refresh = 1; 2491 want_refresh = 1;
2489
2490#endif
2491} 2492}
2492 2493
2493/* ------------------------------------------------------------------------- */ 2494/* ------------------------------------------------------------------------- */
2494void 2495void
2495rxvt_term::scr_clear (bool really) NOTHROW 2496rxvt_term::scr_clear (bool really) NOTHROW
2584{ 2585{
2585 int row, wrote; 2586 int row, wrote;
2586 unsigned int width, towrite; 2587 unsigned int width, towrite;
2587 char r1[] = "\n"; 2588 char r1[] = "\n";
2588 2589
2589 for (row = saveLines - nsaved; 2590 for (row = saveLines + top_row;
2590 row < saveLines + nrow - 1; row++) 2591 row < saveLines + nrow - 1; row++)
2591 { 2592 {
2592 width = row_buf[row].l >= 0 ? row_buf[row].l 2593 width = row_buf[row].l >= 0 ? row_buf[row].l
2593 : ncol; 2594 : ncol;
2594 for (towrite = width; towrite; towrite -= wrote) 2595 for (towrite = width; towrite; towrite -= wrote)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines