Make PANGO @x,y positioning consistent between monthly and weekly calendars.

This commit is contained in:
Dianne Skoll
2025-10-31 16:40:07 -04:00
parent 12fac555b6
commit 22d6c0583a
2 changed files with 7 additions and 4 deletions

View File

@@ -628,7 +628,7 @@ sub col_box_coordinates
$settings->{margin_left} + $cell * $col,
$so_far,
$settings->{margin_left} + $cell * ($col + 1),
$so_far + $height + $settings->{border_size},
$so_far + $height + 2* $settings->{border_size},
);
}
@@ -663,7 +663,7 @@ sub draw_day
$cr->set_source_rgb($shade->{r} / 255,
$shade->{g} / 255,
$shade->{b} / 255);
$cr->rectangle($x1, $y1, $x2 - $x1, $y2 - $y1 + $settings->{border_size});
$cr->rectangle($x1, $y1, $x2 - $x1, $y2 - $y1);
$cr->fill();
$cr->restore;
}