1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Fixed: write pointer is calculated only after write x and y are known. This is probably the memory handling problem?

This commit is contained in:
Thomas Harte 2015-07-28 08:15:54 -04:00
parent 164866d613
commit 596d34190c

View File

@ -428,9 +428,9 @@ void CRTFrameBuilder::allocate_write_area(int required_length)
frame.dirty_size.height++;
}
_write_target_pointer = (_write_y_position * frame.size.width) + _write_x_position;
_write_x_position = _next_write_x_position;
_write_y_position = _next_write_y_position;
_write_target_pointer = (_write_y_position * frame.size.width) + _write_x_position;
_next_write_x_position += required_length;
frame.dirty_size.width = std::max(frame.dirty_size.width, _next_write_x_position);
}