Skip to content

Commit 6f7b1ae

Browse files
authored
Fixed off-by-1 error (#592)
1 parent 44565c8 commit 6f7b1ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bar.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ static void bar_calculate_bounds_top_bottom(struct bar* bar) {
244244
- center_length) / 2 - 1;
245245

246246
uint32_t bar_center_right_first_item_x = (bar->window.frame.size.width
247-
+ notch_width) / 2 - 1;
247+
+ notch_width) / 2;
248248

249249
uint32_t bar_center_left_first_item_x = (bar->window.frame.size.width
250-
- notch_width) / 2 - 1;
250+
- notch_width) / 2;
251251

252252
uint32_t* next_position = NULL;
253253
uint32_t y = bar->window.frame.size.height / 2;
@@ -364,10 +364,10 @@ static void bar_calculate_bounds_left_right(struct bar* bar) {
364364
- center_length) / 2 - 1;
365365

366366
uint32_t bar_center_right_first_item_y = (bar->window.frame.size.height
367-
+ notch_width) / 2 - 1;
367+
+ notch_width) / 2;
368368

369369
uint32_t bar_center_left_first_item_y = (bar->window.frame.size.height
370-
- notch_width) / 2 - 1;
370+
- notch_width) / 2 ;
371371

372372
uint32_t* next_position = NULL;
373373

0 commit comments

Comments
 (0)