minor correction
This commit is contained in:
parent
99a9bbaf5d
commit
5f539e169f
|
@ -47,7 +47,7 @@ error_t bvgaflusher(Buffer_t *buf)
|
||||||
uchar *bufStart = (uchar *)lmax((size_t)buf->buf,
|
uchar *bufStart = (uchar *)lmax((size_t)buf->buf,
|
||||||
(size_t)currentLine
|
(size_t)currentLine
|
||||||
- (buf->nLines - 2 + bscroll) * buf->lineLen);
|
- (buf->nLines - 2 + bscroll) * buf->lineLen);
|
||||||
|
|
||||||
uchar *ptr = bufStart;
|
uchar *ptr = bufStart;
|
||||||
|
|
||||||
// Writes the buffer's content
|
// Writes the buffer's content
|
||||||
|
@ -88,7 +88,7 @@ void IoScrollDown(void)
|
||||||
void IoScrollUp(void)
|
void IoScrollUp(void)
|
||||||
{
|
{
|
||||||
// Keep the 8 below the 10 given to BOpenTermBufEx
|
// Keep the 8 below the 10 given to BOpenTermBufEx
|
||||||
if (bscroll < BtVideoInfo.framebufferHeight * 8)
|
if (bscroll < BtVideoInfo.framebufferHeight * 8 && bscroll < BStdOut->nLines)
|
||||||
bscroll++;
|
bscroll++;
|
||||||
bvgaflusher(BStdOut);
|
bvgaflusher(BStdOut);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue