Skip to content

Commit bb25aee

Browse files
committed
fix code formatting that pre-commit --all-files did not locally report
1 parent 051d7a9 commit bb25aee

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

shared-module/vectorio/Polygon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ mp_obj_t common_hal_vectorio_polygon_get_points(vectorio_polygon_t *self) {
8080
VECTORIO_POLYGON_DEBUG(" (%4d, %4d)\n", self->points_list[i], self->points_list[i + 1]);
8181

8282
mp_obj_tuple_t *pair = MP_OBJ_TO_PTR(mp_obj_new_tuple(2, NULL));
83-
pair->items[0] = mp_obj_new_int((mp_int_t) self->points_list[i ]);
84-
pair->items[1] = mp_obj_new_int((mp_int_t) self->points_list[i + 1]);
83+
pair->items[0] = mp_obj_new_int((mp_int_t)self->points_list[i ]);
84+
pair->items[1] = mp_obj_new_int((mp_int_t)self->points_list[i + 1]);
8585

8686
mp_obj_list_append(
8787
list,

shared-module/vectorio/VectorShape.c

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@
2828

2929
#define U32_TO_BINARY_FMT "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
3030
#define U32_TO_BINARY(u32) \
31-
(u32 & 0x80000000 ? '1' : '0'), \
32-
(u32 & 0x40000000 ? '1' : '0'), \
33-
(u32 & 0x20000000 ? '1' : '0'), \
34-
(u32 & 0x10000000 ? '1' : '0'), \
35-
(u32 & 0x8000000 ? '1' : '0'), \
36-
(u32 & 0x4000000 ? '1' : '0'), \
37-
(u32 & 0x2000000 ? '1' : '0'), \
38-
(u32 & 0x1000000 ? '1' : '0'), \
39-
(u32 & 0x800000 ? '1' : '0'), \
40-
(u32 & 0x400000 ? '1' : '0'), \
41-
(u32 & 0x200000 ? '1' : '0'), \
42-
(u32 & 0x100000 ? '1' : '0'), \
43-
(u32 & 0x80000 ? '1' : '0'), \
44-
(u32 & 0x40000 ? '1' : '0'), \
45-
(u32 & 0x20000 ? '1' : '0'), \
46-
(u32 & 0x10000 ? '1' : '0'), \
47-
(u32 & 0x8000 ? '1' : '0'), \
48-
(u32 & 0x4000 ? '1' : '0'), \
49-
(u32 & 0x2000 ? '1' : '0'), \
50-
(u32 & 0x1000 ? '1' : '0'), \
51-
(u32 & 0x800 ? '1' : '0'), \
52-
(u32 & 0x400 ? '1' : '0'), \
53-
(u32 & 0x200 ? '1' : '0'), \
54-
(u32 & 0x100 ? '1' : '0'), \
55-
(u32 & 0x80 ? '1' : '0'), \
56-
(u32 & 0x40 ? '1' : '0'), \
57-
(u32 & 0x20 ? '1' : '0'), \
58-
(u32 & 0x10 ? '1' : '0'), \
59-
(u32 & 0x8 ? '1' : '0'), \
60-
(u32 & 0x4 ? '1' : '0'), \
61-
(u32 & 0x2 ? '1' : '0'), \
62-
(u32 & 0x1 ? '1' : '0')
31+
(u32 & 0x80000000 ? '1' : '0'), \
32+
(u32 & 0x40000000 ? '1' : '0'), \
33+
(u32 & 0x20000000 ? '1' : '0'), \
34+
(u32 & 0x10000000 ? '1' : '0'), \
35+
(u32 & 0x8000000 ? '1' : '0'), \
36+
(u32 & 0x4000000 ? '1' : '0'), \
37+
(u32 & 0x2000000 ? '1' : '0'), \
38+
(u32 & 0x1000000 ? '1' : '0'), \
39+
(u32 & 0x800000 ? '1' : '0'), \
40+
(u32 & 0x400000 ? '1' : '0'), \
41+
(u32 & 0x200000 ? '1' : '0'), \
42+
(u32 & 0x100000 ? '1' : '0'), \
43+
(u32 & 0x80000 ? '1' : '0'), \
44+
(u32 & 0x40000 ? '1' : '0'), \
45+
(u32 & 0x20000 ? '1' : '0'), \
46+
(u32 & 0x10000 ? '1' : '0'), \
47+
(u32 & 0x8000 ? '1' : '0'), \
48+
(u32 & 0x4000 ? '1' : '0'), \
49+
(u32 & 0x2000 ? '1' : '0'), \
50+
(u32 & 0x1000 ? '1' : '0'), \
51+
(u32 & 0x800 ? '1' : '0'), \
52+
(u32 & 0x400 ? '1' : '0'), \
53+
(u32 & 0x200 ? '1' : '0'), \
54+
(u32 & 0x100 ? '1' : '0'), \
55+
(u32 & 0x80 ? '1' : '0'), \
56+
(u32 & 0x40 ? '1' : '0'), \
57+
(u32 & 0x20 ? '1' : '0'), \
58+
(u32 & 0x10 ? '1' : '0'), \
59+
(u32 & 0x8 ? '1' : '0'), \
60+
(u32 & 0x4 ? '1' : '0'), \
61+
(u32 & 0x2 ? '1' : '0'), \
62+
(u32 & 0x1 ? '1' : '0')
6363

6464

6565
inline __attribute__((always_inline))
@@ -413,7 +413,7 @@ displayio_area_t *vectorio_vector_shape_get_refresh_areas(vectorio_vector_shape_
413413
self->current_area.x1, self->current_area.y1, self->current_area.x2, self->current_area.y2,
414414
area_swap.x1, area_swap.y1, area_swap.x2, area_swap.y2,
415415
union_size, dirty_size, current_size, overlap_size, (int32_t)union_size - dirty_size - current_size + overlap_size
416-
);
416+
);
417417

418418
if ((int32_t)union_size - dirty_size - current_size + overlap_size <= min(dirty_size, current_size)) {
419419
// The excluded / non-overlapping area from the disjoint dirty and current areas is smaller

0 commit comments

Comments
 (0)