mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Correct test logic for line draws that repeatedly write to the same address.
This commit is contained in:
parent
ffcd2ea10c
commit
0c998d60cb
@ -59,7 +59,13 @@ struct Chipset {};
|
||||
continue;
|
||||
}
|
||||
if([type isEqualToString:@"write"]) {
|
||||
writes.push_back(std::make_pair(uint32_t(param1), uint16_t([event[2] integerValue])));
|
||||
const uint16_t value = uint16_t([event[2] integerValue]);
|
||||
|
||||
if(writes.empty() || writes.back().first != param1) {
|
||||
writes.push_back(std::make_pair(uint32_t(param1), value));
|
||||
} else {
|
||||
writes.back().second = value;
|
||||
}
|
||||
state = State::LoggingWrites;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user