mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Fix comment in draw_separated_block
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/0e5a33d1-c34e-4e8a-b161-7469ab770c05 Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
parent
76c76381b8
commit
5f01076daa
1 changed files with 1 additions and 1 deletions
|
|
@ -1535,7 +1535,7 @@ fill_rect(Canvas *self, uint x_start, uint y_start, uint x_end, uint y_end) {
|
|||
static void
|
||||
draw_separated_block(Canvas *self, uint num_cols, uint num_rows, uint which) {
|
||||
// Each "separated" block is drawn with a small gap around it.
|
||||
// Use approximately 1/8 of the cell dimensions as the gap.
|
||||
// Use 1/8 of the cell dimensions as the gap (at least 1 pixel).
|
||||
uint gap_x = max(1u, self->width / 8u);
|
||||
uint gap_y = max(1u, self->height / 8u);
|
||||
uint total_gap_x = (num_cols + 1) * gap_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue