Skip to content

Commit 579afb2

Browse files
committed
fix code format
1 parent 26bd5af commit 579afb2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shared-module/bitmaptools/__init__.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ void common_hal_bitmaptools_rotozoom(displayio_bitmap_t *self, int16_t ox, int16
206206

207207
void common_hal_bitmaptools_replace_color(displayio_bitmap_t *destination,
208208
uint32_t old_color,
209-
uint32_t new_color){
209+
uint32_t new_color) {
210210

211211
int16_t x, y;
212212
for (x = 0; x < destination->width; x++) {
213-
for (y = 0; y < destination->height; y++) {
214-
uint32_t pixel_val = common_hal_displayio_bitmap_get_pixel(destination, x, y);
215-
if (pixel_val == old_color) {
216-
displayio_bitmap_write_pixel(destination, x, y, new_color);
213+
for (y = 0; y < destination->height; y++) {
214+
uint32_t pixel_val = common_hal_displayio_bitmap_get_pixel(destination, x, y);
215+
if (pixel_val == old_color) {
216+
displayio_bitmap_write_pixel(destination, x, y, new_color);
217+
}
217218
}
218-
}
219219
}
220220
}
221221

0 commit comments

Comments
 (0)