From 633172632344e64baf86a543cbde80741c36d2de Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 19 Sep 2020 13:27:07 +0300 Subject: [PATCH] Dual playfield with illegal BPLCON2 priorities didn't work correctly in hires mode. --- drawing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index f408e219..abfe7419 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2408,11 +2408,11 @@ static void clear_bitplane_border_aga (void) static void weird_bitplane_fix (int start, int end) { - int sh = lores_shift; uae_u8 *p = pixdata.apixels + pixels_offset; - start >>= sh; - end >>= sh; + start = res_shift_from_window(start); + end = res_shift_from_window(end); + if (!bpldualpf) { // HAM is unaffected (probably because plane 5 is HAM control bit) if (bplham) -- 2.47.3