From 5d992758f83052cfef8bc4ee661ceaf6d5d3fd3a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 30 Jul 2022 20:13:37 -0400 Subject: [PATCH] Ensure blitter with all flags disabled terminates. --- Machines/Amiga/Blitter.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Machines/Amiga/Blitter.hpp b/Machines/Amiga/Blitter.hpp index 98e0e9e49..f5c6fedf7 100644 --- a/Machines/Amiga/Blitter.hpp +++ b/Machines/Amiga/Blitter.hpp @@ -87,6 +87,7 @@ class BlitterSequencer { switch(control_) { default: break; + case 0: next = next_channel(pattern0); break; case 1: next = next_channel(pattern1); break; case 2: next = next_channel(pattern2); break; case 3: next = next_channel(pattern3); break; @@ -108,6 +109,7 @@ class BlitterSequencer { } private: + static constexpr std::array pattern0 = { Channel::None }; static constexpr std::array pattern1 = { Channel::Write, Channel::None }; static constexpr std::array pattern2 = { Channel::C, Channel::None }; static constexpr std::array pattern3 = { Channel::C, Channel::Write, Channel::None };