Finetuning of available space
This commit is contained in:
@@ -1223,7 +1223,8 @@ display:
|
||||
|
||||
const int first_weekday = weekday_monday(year, month, 1);
|
||||
const int month_days = days_in_month(year, month);
|
||||
for (int row = 0; row < 6; row++) {
|
||||
const int calendar_rows = (first_weekday + month_days + 6) / 7;
|
||||
for (int row = 0; row < calendar_rows; row++) {
|
||||
const int monday_day = 1 - first_weekday + row * 7;
|
||||
int week_year = year;
|
||||
int week_month = month;
|
||||
|
||||
Reference in New Issue
Block a user