1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Avoids massive over-flushing of pixel buffers.

This commit is contained in:
Thomas Harte 2019-11-09 00:05:02 -05:00
parent 8b0d550b81
commit e0c15f43bb

View File

@ -281,7 +281,10 @@ void Video::latch_word() {
}
void Video::shift_out(int length) {
if(!pixel_buffer_.pixel_pointer) pixel_buffer_.allocate(crt_);
if(!pixel_buffer_.pixel_pointer) {
pixel_buffer_.allocate(crt_);
pixel_buffer_.output_bpp = output_bpp_;
}
pixel_buffer_.cycles_output += length;
switch(output_bpp_) {