1
0
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:
Thomas Harte 2024-03-22 22:01:12 -04:00
parent 9ea3e547ee
commit 58bbce1a15

View File

@ -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_;
} }
} }