From: Toni Wilen Date: Fri, 10 Mar 2023 18:21:35 +0000 (+0200) Subject: Fix HAM decoding when bitplane is under border X-Git-Tag: 5.0.0~121 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=85bf868612282040d982b6a55fc5ee4cb8e77846;p=francis%2Fwinuae.git Fix HAM decoding when bitplane is under border --- diff --git a/drawing.cpp b/drawing.cpp index 1e4910bc..8be23d61 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2717,13 +2717,6 @@ static void decode_ham(int pix, int stoppos, int blank) static void decode_ham_border(int pix, int stoppos, int blank) { ham_lastcolor = color_reg_get(&colors_for_drawing, 0); - if (pix >= stoppos) { - return; - } - // HAM decoding starts 1 pixel early - int todraw_amiga = res_shift_from_window(stoppos - pix) - 1; - int hdp = ham_decode_pixel + todraw_amiga; - decode_ham_pixel(hdp); } static void erase_ham_right_border(int pix, int stoppos, bool blank)