From ac6d867948f034fe20ebd59d0e5cfdcbf48784ce Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Mon, 8 Apr 2024 00:05:42 +0900 Subject: [PATCH] Tighten loop --- module/rdpCapture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/rdpCapture.c b/module/rdpCapture.c index 69851bf..bfde4eb 100644 --- a/module/rdpCapture.c +++ b/module/rdpCapture.c @@ -599,10 +599,11 @@ wyhash_rfx_tile(const uint8_t *src, int src_stride, int x, int y, uint64_t seed) uint64_t hash; const uint8_t *s8; hash = seed; + s8 = src + (y * src_stride) + (x * 4); for(row = 0; row < 64; row++) { - s8 = src + (y+row) * src_stride + x * 4; hash = wyhash((const void*)s8, 64 * 4, hash, _wyp); + s8 += src_stride; } return hash; }