Sun Oct 25 14:07:07 2009 Michael Jennings (mej)

Fix off-by-one error that was causing crashes with visual bell.  Found
by d_willsc@cojobo.bonn.de.
----------------------------------------------------------------------


SVN revision: 43285
This commit is contained in:
Michael Jennings 2009-10-25 21:07:43 +00:00
parent 7dea24910a
commit 10842b025d
2 changed files with 6 additions and 1 deletions

View File

@ -5629,3 +5629,8 @@ borderless with no override_redirect (which may come back some day as
a separate option if there's a need) based on advice from raster and
kwo.
----------------------------------------------------------------------
Sun Oct 25 14:07:07 2009 Michael Jennings (mej)
Fix off-by-one error that was causing crashes with visual bell. Found
by d_willsc@cojobo.bonn.de.
----------------------------------------------------------------------

View File

@ -1329,7 +1329,7 @@ scr_rvideo_mode(int mode)
maxlines = TermWin.saveLines + TERM_WINDOW_GET_REPORTED_ROWS();
for (i = TermWin.saveLines; i < maxlines; i++)
for (j = 0; j < TERM_WINDOW_GET_REPORTED_COLS() + 1; j++)
for (j = 0; j < TERM_WINDOW_GET_REPORTED_COLS(); j++)
screen.rend[i][j] ^= RS_RVid;
scr_refresh(SLOW_REFRESH);
}