1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-08-16 00:29:01 +00:00

Quickie: observed that the initial position is one scanline dirty, not zero. Also switched to a size_t on the write pointer, size_t being the correct C size for into-memory offsets.

This commit is contained in:
Thomas Harte 2015-08-17 00:25:32 -04:00
parent df68aeff5a
commit 083b678785
2 changed files with 3 additions and 2 deletions

View File

@ -409,7 +409,8 @@ void CRTFrameBuilder::reset()
{ {
frame.number_of_runs = 0; frame.number_of_runs = 0;
_next_write_x_position = _next_write_y_position = 0; _next_write_x_position = _next_write_y_position = 0;
frame.dirty_size.width = frame.dirty_size.height = 0; frame.dirty_size.width = 0;
frame.dirty_size.height = 1;
} }
void CRTFrameBuilder::complete() void CRTFrameBuilder::complete()

View File

@ -41,7 +41,7 @@ struct CRTFrameBuilder {
// returned and to where the next section will begin // returned and to where the next section will begin
uint16_t _next_write_x_position, _next_write_y_position; uint16_t _next_write_x_position, _next_write_y_position;
uint16_t _write_x_position, _write_y_position; uint16_t _write_x_position, _write_y_position;
unsigned int _write_target_pointer; size_t _write_target_pointer;
}; };
static const int kCRTNumberOfFrames = 4; static const int kCRTNumberOfFrames = 4;