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.319 by root, Tue Nov 4 23:08:44 2008 UTC vs.
Revision 1.323 by root, Tue Nov 4 23:53:29 2008 UTC

158 * ------------------------------------------------------------------------- */ 158 * ------------------------------------------------------------------------- */
159 159
160void 160void
161rxvt_term::scr_reset () 161rxvt_term::scr_reset ()
162{ 162{
163 scr_soft_reset ();
164
163 view_start = 0; 165 view_start = 0;
164 num_scr = 0; 166 num_scr = 0;
165 167
166 if (ncol == 0) 168 if (ncol == 0)
167 ncol = 80; 169 ncol = 80;
434void 436void
435rxvt_term::scr_poweron () 437rxvt_term::scr_poweron ()
436{ 438{
437 scr_release (); 439 scr_release ();
438 prev_nrow = prev_ncol = 0; 440 prev_nrow = prev_ncol = 0;
439 scr_soft_reset ();
440 scr_reset (); 441 scr_reset ();
441 442
442 scr_clear (true); 443 scr_clear (true);
443 scr_refresh (); 444 scr_refresh ();
444} 445}
1348 ren = (rend_t) ~RS_None; 1349 ren = (rend_t) ~RS_None;
1349 else if (GET_BASEBG (rstyle) == Color_bg) 1350 else if (GET_BASEBG (rstyle) == Color_bg)
1350 { 1351 {
1351 ren = DEFAULT_RSTYLE; 1352 ren = DEFAULT_RSTYLE;
1352 1353
1353 if (mapped) 1354 if (mapped && !view_start)
1354 XClearArea (dpy, vt, 0, 1355 XClearArea (dpy, vt, 0,
1355 Row2Pixel (row), (unsigned int)width, 1356 Row2Pixel (row - view_start), (unsigned int)width,
1356 (unsigned int)Height2Pixel (num), False); 1357 (unsigned int)Height2Pixel (num), False);
1357 } 1358 }
1358 else 1359 else
1359 { 1360 {
1360 ren = rstyle & (RS_fgMask | RS_bgMask); 1361 ren = rstyle & (RS_fgMask | RS_bgMask);
1361 1362
1363 if (mapped && !view_start)
1364 {
1362 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)]; 1365 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)];
1363 XChangeGC (dpy, gc, GCForeground, &gcvalue); 1366 XChangeGC (dpy, gc, GCForeground, &gcvalue);
1364 XFillRectangle (dpy, vt, gc, 1367 XFillRectangle (dpy, vt, gc,
1365 0, Row2Pixel (row), 1368 0, Row2Pixel (row - view_start),
1366 (unsigned int)width, 1369 (unsigned int)width,
1367 (unsigned int)Height2Pixel (num)); 1370 (unsigned int)Height2Pixel (num));
1368 gcvalue.foreground = pix_colors[Color_fg]; 1371 gcvalue.foreground = pix_colors[Color_fg];
1369 XChangeGC (dpy, gc, GCForeground, &gcvalue); 1372 XChangeGC (dpy, gc, GCForeground, &gcvalue);
1373 }
1370 } 1374 }
1371 1375
1372 for (; num--; row++) 1376 for (; num--; row++)
1373 { 1377 {
1374 scr_blank_screen_mem (ROW(row), rstyle); 1378 scr_blank_screen_mem (ROW(row), rstyle);
1379 if (!view_start)
1375 scr_blank_line (drawn_buf [row], 0, ncol, ren); 1380 scr_blank_line (drawn_buf [row], 0, ncol, ren);
1376 } 1381 }
1377} 1382}
1378 1383
1379#if !ENABLE_MINIMAL 1384#if !ENABLE_MINIMAL
1380void 1385void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines