Skip to content

Commit 8c22993

Browse files
committed
fix linter
1 parent 8607cdd commit 8c22993

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

shared-module/vectorio/Rectangle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void common_hal_vectorio_rectangle_construct(vectorio_rectangle_t *self, uint32_
1212

1313
uint32_t common_hal_vectorio_rectangle_get_pixel(void *obj, int16_t x, int16_t y) {
1414
vectorio_rectangle_t *self = obj;
15-
if (x >= 0 && y >= 0 && x < self->width && y < self->height ) {
15+
if (x >= 0 && y >= 0 && x < self->width && y < self->height) {
1616
return 1;
1717
}
1818
return 0;

shared-module/vectorio/VectorShape.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void _get_screen_area(vectorio_vector_shape_t *self, displayio_area_t *ou
6060
self->absolute_transform->transpose_xy,
6161
&shape_area, &shape_area, out_area
6262
);
63-
63+
6464
displayio_area_shift(
6565
out_area,
6666
self->absolute_transform->x,
@@ -100,7 +100,7 @@ void common_hal_vectorio_vector_shape_set_dirty(void *vector_shape) {
100100
VECTORIO_SHAPE_DEBUG(" stale:{(%3d,%3d), (%3d,%3d)} -> expanded:{(%3d,%3d), (%3d,%3d)}\n",
101101
self->current_area.x1, self->current_area.y1, self->current_area.x2, self->current_area.y2,
102102
self->ephemeral_dirty_area.x1, self->ephemeral_dirty_area.y1, self->ephemeral_dirty_area.x2, self->ephemeral_dirty_area.y2);
103-
103+
104104
// Dirty area tracks the shape's footprint between draws. It's reset on refresh finish.
105105
displayio_area_copy(&current_area, &self->current_area);
106106
}
@@ -369,11 +369,11 @@ displayio_area_t *vectorio_vector_shape_get_refresh_areas(vectorio_vector_shape_
369369
new_tail = &self->current_area;
370370
VECTORIO_SHAPE_DEBUG(" redrawing current: {(%3d,%3d), (%3d,%3d)}", self->current_area.x1, self->current_area.y1, self->current_area.x2, self->current_area.y2);
371371
}
372-
#ifdef VECTORIO_SHAPE_DEBUG
372+
#ifdef VECTORIO_SHAPE_DEBUG
373373
if (new_tail != tail) {
374374
VECTORIO_SHAPE_DEBUG("\n");
375375
}
376-
#endif
376+
#endif
377377
return new_tail;
378378
}
379379

0 commit comments

Comments
 (0)