From 4bb8111a050ad97e24a9ddb41f65a85891a30048 Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 26 Jan 2020 20:49:20 +0100 Subject: [PATCH] regression fix for gp2x 8bit fast mode --- platform/common/arm_utils.s | 1 + platform/linux/blit.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5