From 814c0ada13791b97267fb32265a9f96a7b49e65c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 26 Mar 2017 18:33:05 -0400 Subject: [PATCH] Fixed action counts for border motion. --- Machines/Atari2600/TIA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Atari2600/TIA.cpp b/Machines/Atari2600/TIA.cpp index d43d3e403..15d2c36dc 100644 --- a/Machines/Atari2600/TIA.cpp +++ b/Machines/Atari2600/TIA.cpp @@ -586,7 +586,7 @@ template void TIA::draw_object(T &object, const uint8_t collision_ident // movement works across the entire screen, so do work that falls outside of the pixel area if(start < first_pixel) { - perform_border_motion(object, start, std::max(end, first_pixel)); + perform_border_motion(object, start, std::min(end, first_pixel)); } // don't continue to do any drawing if this window ends too early