From c9aa4527a93cb309c1469079af7db7f2efc6072e Mon Sep 17 00:00:00 2001 From: Tsutomu IKEGAMI Date: Fri, 4 Mar 2022 17:06:07 +0900 Subject: [PATCH] Fix freeze on bitmaptools.dither --- shared-module/bitmaptools/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-module/bitmaptools/__init__.c b/shared-module/bitmaptools/__init__.c index 6b5def2904..4c73d8fb8e 100644 --- a/shared-module/bitmaptools/__init__.c +++ b/shared-module/bitmaptools/__init__.c @@ -691,7 +691,7 @@ static void write_pixels(displayio_bitmap_t *bitmap, int y, bool *data) { uint32_t *pixel_data = (uint32_t *)(bitmap->data + bitmap->stride * y); for (int i = 0; i < bitmap->stride; i++) { uint32_t p = 0; - for (int j = 0; j < 32; i++) { + for (int j = 0; j < 32; j++) { p = (p << 1); if (*data++) { p |= 1;