From: kub Date: Sun, 26 Jan 2020 19:49:20 +0000 (+0100) Subject: regression fix for gp2x 8bit fast mode X-Git-Tag: v2.00~793 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb8111a050ad97e24a9ddb41f65a85891a30048;p=picodrive.git regression fix for gp2x 8bit fast mode --- diff --git a/platform/common/arm_utils.s b/platform/common/arm_utils.s index 9e8d9f25..6696e5af 100644 --- a/platform/common/arm_utils.s +++ b/platform/common/arm_utils.s @@ -141,6 +141,7 @@ vidcpy_m2: movne lr, #64 tstne r3, r3 addne r0, r0, #32 + addne r1, r1, #32 vidCpyM2_loop_out: mov r6, #10 diff --git a/platform/linux/blit.c b/platform/linux/blit.c index 96326fe1..82bc4ba5 100644 --- a/platform/linux/blit.c +++ b/platform/linux/blit.c @@ -61,10 +61,11 @@ void vidcpy_m2(void *dest, void *src, int m32col, int with_32c_border) for (i = 0; i < 224; i++) { ps += 8; + ps += 32; pd += 32; for (u = 0; u < 256; u++) *pd++ = *ps++; - ps += 64; + ps += 32; pd += 32; } } else {