1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +00:00

A minor fix to data queuing. Display still absent.

This commit is contained in:
Thomas Harte 2016-02-13 20:57:41 -05:00
parent 7bd237193d
commit d0b2d840da

View File

@ -45,7 +45,7 @@ void CRT::CRTInputBufferBuilder::allocate_write_area(size_t required_length)
if(_next_write_x_position + required_length + 2 > CRTInputBufferBuilderWidth)
{
_next_write_x_position = 0;
_next_write_y_position = (_next_write_y_position+1)%CRTInputBufferBuilderWidth;
_next_write_y_position = (_next_write_y_position+1)%CRTInputBufferBuilderHeight;
}
_write_x_position = _next_write_x_position + 1;