]> Pileus Git - lackey/commitdiff
Fix month draw bug
authorAndy Spencer <andy753421@gmail.com>
Sun, 14 Oct 2012 07:04:23 +0000 (07:04 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 14 Oct 2012 07:04:23 +0000 (07:04 +0000)
view/month.c

index 4e8b237a9942f356be668d3feeecab7e35a1ee59..b8e3eb189a539c4a49fb53337a0292152caad64e 100644 (file)
@@ -109,7 +109,7 @@ void month_draw(void)
                int top = d >=  start             ? 0     : 1;
                int bot = d <= (start+days-1)%7+1 ? weeks : weeks-1;
                mvwvline(win, ROUND(4+top*vstep), ROUND(d*hstep),
-                               ACS_VLINE, (bot-top)*vstep-1);
+                               ACS_VLINE, (bot-top)*vstep);
                for (int w = 1; w < weeks; w++) {
                        int chr = w == top ? ACS_TTEE :
                                  w == bot ? ACS_BTEE : ACS_PLUS;