1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Fixed: ensured that the attempt to plot a misplaced write occurs correctly.

This commit is contained in:
Thomas Harte 2016-05-09 07:42:26 -04:00
parent e6a7161e87
commit 8eb058064c

View File

@ -59,6 +59,8 @@ void CRTInputBufferBuilder::reduce_previous_allocation_to(size_t actual_length)
_write_target_pointer = 1;
_last_allocation_amount = actual_length;
_next_write_x_position = (uint16_t)(actual_length + 2);
_write_x_position = 1;
_write_y_position = 0;
}
// book end the allocation with duplicates of the first and last pixel, to protect