Fix freeze on bitmaptools.dither

This commit is contained in:
Tsutomu IKEGAMI 2022-03-04 17:06:07 +09:00
parent 6af4c7797c
commit c9aa4527a9

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;