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.320 by root, Tue Nov 4 23:20:17 2008 UTC vs.
Revision 1.322 by root, Tue Nov 4 23:35:50 2008 UTC

159 159
160void 160void
161rxvt_term::scr_reset () 161rxvt_term::scr_reset ()
162{ 162{
163 scr_soft_reset (); 163 scr_soft_reset ();
164
164 view_start = 0; 165 view_start = 0;
165
166 num_scr = 0; 166 num_scr = 0;
167 167
168 if (ncol == 0) 168 if (ncol == 0)
169 ncol = 80; 169 ncol = 80;
170 170
1351 { 1351 {
1352 ren = DEFAULT_RSTYLE; 1352 ren = DEFAULT_RSTYLE;
1353 1353
1354 if (mapped) 1354 if (mapped)
1355 XClearArea (dpy, vt, 0, 1355 XClearArea (dpy, vt, 0,
1356 Row2Pixel (row), (unsigned int)width, 1356 Row2Pixel (row - view_start), (unsigned int)width,
1357 (unsigned int)Height2Pixel (num), False); 1357 (unsigned int)Height2Pixel (num), False);
1358 } 1358 }
1359 else 1359 else
1360 { 1360 {
1361 ren = rstyle & (RS_fgMask | RS_bgMask); 1361 ren = rstyle & (RS_fgMask | RS_bgMask);
1362 1362
1363 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)]; 1363 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)];
1364 XChangeGC (dpy, gc, GCForeground, &gcvalue); 1364 XChangeGC (dpy, gc, GCForeground, &gcvalue);
1365 XFillRectangle (dpy, vt, gc, 1365 XFillRectangle (dpy, vt, gc,
1366 0, Row2Pixel (row), 1366 0, Row2Pixel (row - view_start),
1367 (unsigned int)width, 1367 (unsigned int)width,
1368 (unsigned int)Height2Pixel (num)); 1368 (unsigned int)Height2Pixel (num));
1369 gcvalue.foreground = pix_colors[Color_fg]; 1369 gcvalue.foreground = pix_colors[Color_fg];
1370 XChangeGC (dpy, gc, GCForeground, &gcvalue); 1370 XChangeGC (dpy, gc, GCForeground, &gcvalue);
1371 } 1371 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines