From: Toni Wilen Date: Sat, 19 Sep 2020 10:27:07 +0000 (+0300) Subject: Dual playfield with illegal BPLCON2 priorities didn't work correctly in hires mode. X-Git-Tag: 4900~317 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=633172632344e64baf86a543cbde80741c36d2de;p=francis%2Fwinuae.git Dual playfield with illegal BPLCON2 priorities didn't work correctly in hires mode. --- 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)