Add explanatory comment for monthHeight
This commit is contained in:
parent
a7dbe96dc8
commit
4d0c4c78a6
2
Main.go
2
Main.go
|
@ -17,6 +17,8 @@ const (
|
||||||
largeGap = 3
|
largeGap = 3
|
||||||
monthWidth = 7*dayWidth + 6*smallGap
|
monthWidth = 7*dayWidth + 6*smallGap
|
||||||
monthHeight = (31+6+(7-1))/7 + 2
|
monthHeight = (31+6+(7-1))/7 + 2
|
||||||
|
/* monthHeight is the height of a 31-day month starting on Sunday (month
|
||||||
|
name and weekdays included) */
|
||||||
|
|
||||||
titleHeight = smallGap + 1
|
titleHeight = smallGap + 1
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue