]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix horizontal offset in bitplanes if bitplane was active behind left horizontal...
authorToni Wilen <twilen@winuae.net>
Sun, 14 May 2023 17:32:27 +0000 (20:32 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 14 May 2023 17:32:27 +0000 (20:32 +0300)
drawing.cpp

index 91ec019c38cc28a10c9c106fe50791632b241d38..e3968aa9eec27121fa8cf4905fea14ff2fde146c 100644 (file)
@@ -3671,6 +3671,10 @@ static void do_color_changes(line_draw_func worker_border, line_draw_func worker
                                        if (nextpos_in_range > lastpos && lastpos < playfield_start) {
                                                int t = nextpos_in_range <= playfield_start ? nextpos_in_range : playfield_start;
                                                (*worker_border)(lastpos, t, 0);
+                                               // if playfield starts before hblank end: adjust back to playfield start
+                                               if (t > playfield_start) {
+                                                       t = playfield_start;
+                                               }
                                                lastpos = t;
                                        }