mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-27 00:30:26 +00:00
Merge pull request #116 from TomHarte/YarsBug
Fixes a bug in which TIA access during the border would flush all motion steps.
This commit is contained in:
commit
6e9ab9f330
@ -586,7 +586,7 @@ template<class T> 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
|
// movement works across the entire screen, so do work that falls outside of the pixel area
|
||||||
if(start < first_pixel) {
|
if(start < first_pixel) {
|
||||||
perform_border_motion<T>(object, start, std::max(end, first_pixel));
|
perform_border_motion<T>(object, start, std::min(end, first_pixel));
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't continue to do any drawing if this window ends too early
|
// don't continue to do any drawing if this window ends too early
|
||||||
|
Loading…
x
Reference in New Issue
Block a user