From e0c15f43bb915174ecf72d2e1e2de4de1b465b62 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 9 Nov 2019 00:05:02 -0500 Subject: [PATCH] Avoids massive over-flushing of pixel buffers. --- Machines/AtariST/Video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Machines/AtariST/Video.cpp b/Machines/AtariST/Video.cpp index a3cff91be..c07cebfc8 100644 --- a/Machines/AtariST/Video.cpp +++ b/Machines/AtariST/Video.cpp @@ -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_) {