From: Hugo Villeneuve Date: Sun, 2 Jun 2013 12:19:13 +0000 (-0400) Subject: Fixed centering of text in calendar mode X-Git-Tag: v1.1.0~20 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ed16f1c76e6b33cc62ec6b6f9b335aaddad04115;p=dockapps%2Fhvclock.git Fixed centering of text in calendar mode --- diff --git a/src/clock.c b/src/clock.c index f86b025..798d152 100644 --- a/src/clock.c +++ b/src/clock.c @@ -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);