From f3e83f2a7a42103c213c07889c1a9945fef49b73 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 22 Nov 2014 10:24:24 -0200 Subject: [PATCH] week-view: fixed some more integer round issues --- src/gcal-week-view.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c index 82a4de2d..5f9e7587 100644 --- a/src/gcal-week-view.c +++ b/src/gcal-week-view.c @@ -247,8 +247,8 @@ draw_header (GcalWeekView *view, gint pos_i; gint start_grid_y; gint font_height; - gint sidebar_width; - gint cell_width; + gdouble sidebar_width; + gdouble cell_width; icaltimetype *start_of_week; gint current_cell; @@ -369,7 +369,7 @@ draw_grid_window (GcalWeekView *view, gint i; gint width; gint height; - gint sidebar_width; + gdouble sidebar_width; gint current_cell; PangoLayout *layout; @@ -402,9 +402,9 @@ draw_grid_window (GcalWeekView *view, gtk_style_context_add_class (context, "current"); gtk_render_background ( context, cr, - ((width - sidebar_width)/ 7) * current_cell + sidebar_width, + ((width - sidebar_width)/ 7.0) * current_cell + sidebar_width, 0, - ((width - sidebar_width)/ 7), + ((width - sidebar_width)/ 7.0), height); gtk_style_context_remove_class (context, "current"); gtk_style_context_restore (context);