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.346 by sf-exg, Mon Jul 26 09:57:53 2010 UTC vs.
Revision 1.347 by sf-exg, Sat Aug 28 11:03:04 2010 UTC

1336 if (row >= nrow) /* Out Of Bounds */ 1336 if (row >= nrow) /* Out Of Bounds */
1337 return; 1337 return;
1338 1338
1339 min_it (num, nrow - row); 1339 min_it (num, nrow - row);
1340 1340
1341 // TODO: the code below does not work when view_start != 0
1342 // the workaround is to disable the clear and use a normal refresh
1343 // when view_start != 0. mysterious.
1344 if (rstyle & (RS_Blink | RS_RVid | RS_Uline)) 1341 if (rstyle & (RS_Blink | RS_RVid | RS_Uline))
1345 ren = (rend_t) ~RS_None; 1342 ren = (rend_t) ~RS_None;
1346 else if (GET_BASEBG (rstyle) == Color_bg) 1343 else if (GET_BASEBG (rstyle) == Color_bg)
1347 { 1344 {
1348 ren = DEFAULT_RSTYLE; 1345 ren = DEFAULT_RSTYLE;
1349 1346
1350 if (mapped && !view_start) 1347 if (mapped)
1351 XClearArea (dpy, vt, 0, 1348 XClearArea (dpy, vt, 0,
1352 Row2Pixel (row - view_start), (unsigned int)width, 1349 Row2Pixel (row - view_start), (unsigned int)width,
1353 (unsigned int)Height2Pixel (num), False); 1350 (unsigned int)Height2Pixel (num), False);
1354 } 1351 }
1355 else 1352 else
1356 { 1353 {
1357 ren = rstyle & (RS_fgMask | RS_bgMask); 1354 ren = rstyle & (RS_fgMask | RS_bgMask);
1358 1355
1359 if (mapped && !view_start) 1356 if (mapped)
1360 { 1357 {
1361 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)]; 1358 gcvalue.foreground = pix_colors[bgcolor_of (rstyle)];
1362 XChangeGC (dpy, gc, GCForeground, &gcvalue); 1359 XChangeGC (dpy, gc, GCForeground, &gcvalue);
1363 XFillRectangle (dpy, vt, gc, 1360 XFillRectangle (dpy, vt, gc,
1364 0, Row2Pixel (row - view_start), 1361 0, Row2Pixel (row - view_start),
1371 1368
1372 for (; num--; row++) 1369 for (; num--; row++)
1373 { 1370 {
1374 scr_blank_screen_mem (ROW(row), rstyle); 1371 scr_blank_screen_mem (ROW(row), rstyle);
1375 1372
1376 if (!view_start) 1373 if (row - view_start < nrow)
1377 scr_blank_line (drawn_buf [row], 0, ncol, ren); 1374 scr_blank_line (drawn_buf [row - view_start], 0, ncol, ren);
1378 } 1375 }
1379} 1376}
1380 1377
1381#if !ENABLE_MINIMAL 1378#if !ENABLE_MINIMAL
1382void 1379void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines