]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix HAM decoding when bitplane is under border
authorToni Wilen <twilen@winuae.net>
Fri, 10 Mar 2023 18:21:35 +0000 (20:21 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 10 Mar 2023 18:21:35 +0000 (20:21 +0200)
drawing.cpp

index 1e4910bc0f5d351f4354f62b87b739b3be03c819..8be23d615795f63fe52bbe8ed4551794818025df 100644 (file)
@@ -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)