Skip to content

Commit

Permalink
borders: treat 0 pixels as 1 pixel border
Browse files Browse the repository at this point in the history
When computing the border rectangle of windows, set those to just 1
pixel, so that existing rendering routines continue to function.

Fixes #755
  • Loading branch information
ThomasAdam committed Nov 13, 2022
1 parent 3192f1e commit 53c5417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/Graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void do_relieve_rectangle_with_rotation(
}
max_w = min((w + 1) / 2, line_width);
max_h = min((h + 1) / 2, line_width);
seg = fxmalloc(sizeof(XSegment) * line_width * 2);
seg = fxmalloc(sizeof(XSegment) * line_width * 2 + 1);
/* from 0 to the lesser of line_width & just over half w */

/* left */
Expand Down

0 comments on commit 53c5417

Please sign in to comment.