mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-28 21:49:27 +00:00
Avoid display errors upon back-pressure.
This commit is contained in:
parent
9ea3e547ee
commit
58bbce1a15
@ -175,6 +175,10 @@ struct Video {
|
|||||||
pixels_[0] = colours_[next & 0xf];
|
pixels_[0] = colours_[next & 0xf];
|
||||||
pixels_[1] = colours_[next >> 4];
|
pixels_[1] = colours_[next >> 4];
|
||||||
pixels_ += 2;
|
pixels_ += 2;
|
||||||
|
} else {
|
||||||
|
// TODO: don't assume 4bpp here either.
|
||||||
|
++address_;
|
||||||
|
if(address_ == buffer_end_) address_ = buffer_start_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user