From c2bf75d1517642e77842352d39365ed9e0354231 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 21 May 2016 17:44:29 -0300 Subject: [PATCH] month-view: improve rendering of DnD target This commit makes the lines always 1px. --- src/gcal-month-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 49cffbda..b200beec 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -1668,10 +1668,10 @@ gcal_month_view_draw (GtkWidget *widget, { gtk_render_background (context, cr, - cell_width * real_cell (priv->dnd_cell % 7, priv->k), - cell_height * (priv->dnd_cell / 7 + first_row_gap) + start_grid_y, - cell_width, - cell_height); + floor (cell_width * real_cell (priv->dnd_cell % 7, priv->k)), + floor (cell_height * (priv->dnd_cell / 7 + first_row_gap) + start_grid_y), + cell_width + 1, + cell_height + 1); } /* grid numbers */