]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix SPRxPOS modification just before horizontal match if sprite had lowest horizontal...
authorToni Wilen <twilen@winuae.net>
Sun, 15 Sep 2024 14:57:14 +0000 (17:57 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 15 Sep 2024 14:57:14 +0000 (17:57 +0300)
custom.cpp

index 8aff5baf486c09a1c2651404d3aac9bdc36062bd..8087baceccd62b50ca17f22f2532cca535b97799 100644 (file)
@@ -5852,7 +5852,7 @@ static void decide_sprites2(int start, int end, int *countp, int *nrs, int *posn
                        hw_xp = sprxp >> sprite_buffer_res;
                }
 
-               if (hw_xp >= start && hw_xp < end) {
+               if (((hw_xp >= start) || ((spr[i].pos & 1) && hw_xp == start - 1)) && hw_xp < end) {
                        int xdiff = hw_xp - start;
                        int sprxp_abs = (last_sprite_point_abs + xdiff) << sprite_buffer_res;
                        // add hires/shres back