Rev 4528 | Rev 4594 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4528 | Rev 4548 | ||
---|---|---|---|
Line 448... | Line 448... | ||
448 | 448 | ||
449 | y = vport->y; |
449 | y = vport->y; |
450 | for (row = 0; row < vport->rows; row++) { |
450 | for (row = 0; row < vport->rows; row++) { |
451 | x = vport->x; |
451 | x = vport->x; |
452 | for (col = 0; col < vport->cols; col++) { |
452 | for (col = 0; col < vport->cols; col++) { |
- | 453 | if (((int) row + lines >= 0) && |
|
453 | if ((row + lines >= 0) && (row + lines < vport->rows)) { |
454 | ((int) row + lines < (int) vport->rows)) { |
454 | xbp = &vport->backbuf[BB_POS(vport, col, row + lines)]; |
455 | xbp = &vport->backbuf[BB_POS(vport, col, row + lines)]; |
455 | bbp = &vport->backbuf[BB_POS(vport, col, row)]; |
456 | bbp = &vport->backbuf[BB_POS(vport, col, row)]; |
456 | 457 | ||
457 | glyph = xbp->glyph; |
458 | glyph = xbp->glyph; |
458 | fg_color = xbp->fg_color; |
459 | fg_color = xbp->fg_color; |