From 3f12a28f4f396fa5809aeb195d382d276e743577 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 28 Jan 2023 22:50:04 -0500 Subject: [PATCH] Locate first pixel correctly. --- Components/9918/Implementation/YamahaCommands.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Components/9918/Implementation/YamahaCommands.hpp b/Components/9918/Implementation/YamahaCommands.hpp index 26a1b1949..5c90e9352 100644 --- a/Components/9918/Implementation/YamahaCommands.hpp +++ b/Components/9918/Implementation/YamahaCommands.hpp @@ -172,13 +172,15 @@ struct PointSet: public Command { struct LogicalMoveFromCPU: public Command { public: LogicalMoveFromCPU(CommandContext &context) : Command(context) { + is_cpu_transfer = true; + start_x_ = context.destination.v[0]; width_ = context.size.v[0]; // This command is started with the first colour ready to transfer. cycles = 32; access = AccessType::PlotPoint; - is_cpu_transfer = true; + location = context.destination; } void advance() final {