Fixed centering of text in calendar mode
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 2 Jun 2013 12:19:13 +0000 (08:19 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 2 Jun 2013 12:19:45 +0000 (08:19 -0400)
src/clock.c

index f86b025..798d152 100644 (file)
@@ -325,7 +325,7 @@ calendar_display_test(GtkWidget *clock, struct tm *ts, cairo_t *cr,
        char str[32];
 
        diameter = 2 * get_clock_face_radius(clock);
-       center_x = clock->allocation.width / 2;
+       center_x = (clock->allocation.width / 2) - 2;
        start_y = (clock->allocation.height / 2) - (diameter / 2);
 
        cairo_set_font_size(cr, diameter * font_ratio);