minor correction

This commit is contained in:
Adrien Bourmault 2019-05-11 10:42:34 +02:00
parent 99a9bbaf5d
commit 5f539e169f
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ error_t bvgaflusher(Buffer_t *buf)
uchar *bufStart = (uchar *)lmax((size_t)buf->buf,
(size_t)currentLine
- (buf->nLines - 2 + bscroll) * buf->lineLen);
uchar *ptr = bufStart;
// Writes the buffer's content
@ -88,7 +88,7 @@ void IoScrollDown(void)
void IoScrollUp(void)
{
// Keep the 8 below the 10 given to BOpenTermBufEx
if (bscroll < BtVideoInfo.framebufferHeight * 8)
if (bscroll < BtVideoInfo.framebufferHeight * 8 && bscroll < BStdOut->nLines)
bscroll++;
bvgaflusher(BStdOut);
}