From a1f12c25cae2dbcc8a904d628827dd4789b738cc Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 10 Jun 2011 20:30:49 +0200 Subject: [PATCH] ARM: Fix normal2x scaler for width % 4 != 0 The first jump to 'thin:' didn't leave r14 (remaining width) in the right state. --- graphics/scaler/Normal2xARM.s | 1 + 1 file changed, 1 insertion(+) diff --git a/graphics/scaler/Normal2xARM.s b/graphics/scaler/Normal2xARM.s index 9afe3f34f04..e3592295e0d 100644 --- a/graphics/scaler/Normal2xARM.s +++ b/graphics/scaler/Normal2xARM.s @@ -44,6 +44,7 @@ Normal2xARM: ADD r3, r3, r6 yloop: SUBS r14,r4, #4 + ADDLT r14,r14, #4 BLT thin xloop: LDRH r6, [r0], #2