Merge pull request #6112 from t-ikegami/fix_bitmaptools_dither

Fix freeze on bitmaptools.dither
This commit is contained in:
Scott Shawcroft 2022-03-04 10:29:00 -08:00 committed by GitHub
commit faaf181b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;