[gnome-calendar/wip/gbsneto/dnd: 10/14] month-view: improve rendering of DnD target



commit c2bf75d1517642e77842352d39365ed9e0354231
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat May 21 17:44:29 2016 -0300

    month-view: improve rendering of DnD target
    
    This commit makes the lines always 1px.

 src/gcal-month-view.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 49cffbd..b200bee 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]