From: Po Lu Date: Mon, 29 May 2023 09:59:48 +0000 (+0800) Subject: Update Android port X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1088a8e8dab13085951254ee191a267145a9d825;p=emacs.git Update Android port * src/android.c (android_blit_copy): (android_blit_xor): Fix typos. --- diff --git a/src/android.c b/src/android.c index 9674fda36d8..e0d0da6704a 100644 --- a/src/android.c +++ b/src/android.c @@ -4044,7 +4044,7 @@ android_blit_copy (int src_x, int src_y, int width, int height, size_t pixel, offset, offset1; unsigned char *src_current, *dst_current; unsigned char *mask_current; - int overflow, temp, i, xdir; + int overflow, temp, i, j; bool backwards; unsigned int *long_src, *long_dst; @@ -4292,7 +4292,7 @@ android_blit_copy (int src_x, int src_y, int width, int height, mask_current = mask; #ifndef __aarch64__ - while (temp--) + for (j = 0; j < temp; ++j) { /* Sign extend the mask. */ i = *(signed char *) mask_current++; @@ -4335,14 +4335,16 @@ android_blit_xor (int src_x, int src_y, int width, int height, unsigned char *dst, AndroidBitmapInfo *dst_info, unsigned char *mask, AndroidBitmapInfo *mask_info) { +#if 0 uintptr_t start, end; int mask_offset; size_t pixel, offset, offset1; unsigned char *src_current, *dst_current; unsigned char *mask_current; - int overflow, temp, i, xdir; + int overflow, temp, i; bool backwards; unsigned int *long_src, *long_dst; +#endif /* 0 */ /* Note that this alu hasn't been tested -- it probably does not work! */