mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-14 13:33:42 +00:00
Ensures remaining_delays_
is set properly after [reset/flush]_writing.
This commit is contained in:
parent
8d87e9eb1c
commit
3b165a78f2
@ -59,10 +59,12 @@ int Line::write_data_time_remaining() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Line::reset_writing() {
|
void Line::reset_writing() {
|
||||||
|
remaining_delays_ = 0;
|
||||||
events_.clear();
|
events_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Line::flush_writing() {
|
void Line::flush_writing() {
|
||||||
|
remaining_delays_ = 0;
|
||||||
for(const auto &event : events_) {
|
for(const auto &event : events_) {
|
||||||
switch(event.type) {
|
switch(event.type) {
|
||||||
default: break;
|
default: break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user