month-view: improve rendering of DnD target

This commit makes the lines always 1px.
This commit is contained in:
Georges Basile Stavracas Neto
2016-05-21 18:54:47 -03:00
parent 220d7c88bd
commit c2bf75d151
+4 -4
View File
@@ -1668,10 +1668,10 @@ gcal_month_view_draw (GtkWidget *widget,
{ {
gtk_render_background (context, gtk_render_background (context,
cr, cr,
cell_width * real_cell (priv->dnd_cell % 7, priv->k), floor (cell_width * real_cell (priv->dnd_cell % 7, priv->k)),
cell_height * (priv->dnd_cell / 7 + first_row_gap) + start_grid_y, floor (cell_height * (priv->dnd_cell / 7 + first_row_gap) + start_grid_y),
cell_width, cell_width + 1,
cell_height); cell_height + 1);
} }
/* grid numbers */ /* grid numbers */