fix fillRegion/clearRegion.

This commit is contained in:
Christopher Jeffrey 2015-05-01 18:20:16 -07:00
parent 69b3d144c4
commit f26ae44d84
2 changed files with 4 additions and 1 deletions

View File

@ -1752,6 +1752,9 @@ Screen.prototype.fillRegion = function(attr, ch, xi, xl, yi, yl, override) {
, cell
, xx;
if (xi < 0) xi = 0;
if (yi < 0) yi = 0;
for (; yi < yl; yi++) {
if (!lines[yi]) break;
for (xx = xi; xx < xl; xx++) {

View File

@ -321,7 +321,7 @@ setInterval(function() {
progress.reset();
}
progress.progress(2);
progress.atop -= 2;
screen.render();
setTimeout(fill, 300);
progress.atop -= 2;
})();