week-view: fixed some more integer round issues
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
2e8b677d6a
commit
f3e83f2a7a
@@ -247,8 +247,8 @@ draw_header (GcalWeekView *view,
|
|||||||
gint pos_i;
|
gint pos_i;
|
||||||
gint start_grid_y;
|
gint start_grid_y;
|
||||||
gint font_height;
|
gint font_height;
|
||||||
gint sidebar_width;
|
gdouble sidebar_width;
|
||||||
gint cell_width;
|
gdouble cell_width;
|
||||||
icaltimetype *start_of_week;
|
icaltimetype *start_of_week;
|
||||||
gint current_cell;
|
gint current_cell;
|
||||||
|
|
||||||
@@ -369,7 +369,7 @@ draw_grid_window (GcalWeekView *view,
|
|||||||
gint i;
|
gint i;
|
||||||
gint width;
|
gint width;
|
||||||
gint height;
|
gint height;
|
||||||
gint sidebar_width;
|
gdouble sidebar_width;
|
||||||
gint current_cell;
|
gint current_cell;
|
||||||
|
|
||||||
PangoLayout *layout;
|
PangoLayout *layout;
|
||||||
@@ -402,9 +402,9 @@ draw_grid_window (GcalWeekView *view,
|
|||||||
gtk_style_context_add_class (context, "current");
|
gtk_style_context_add_class (context, "current");
|
||||||
gtk_render_background (
|
gtk_render_background (
|
||||||
context, cr,
|
context, cr,
|
||||||
((width - sidebar_width)/ 7) * current_cell + sidebar_width,
|
((width - sidebar_width)/ 7.0) * current_cell + sidebar_width,
|
||||||
0,
|
0,
|
||||||
((width - sidebar_width)/ 7),
|
((width - sidebar_width)/ 7.0),
|
||||||
height);
|
height);
|
||||||
gtk_style_context_remove_class (context, "current");
|
gtk_style_context_remove_class (context, "current");
|
||||||
gtk_style_context_restore (context);
|
gtk_style_context_restore (context);
|
||||||
|
|||||||
Reference in New Issue
Block a user