[gnome-calendar] week-view: fixed some more integer round issues
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] week-view: fixed some more integer round issues
- Date: Thu, 4 Dec 2014 22:44:05 +0000 (UTC)
commit f3e83f2a7a42103c213c07889c1a9945fef49b73
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Nov 22 10:24:24 2014 -0200
week-view: fixed some more integer round issues
src/gcal-week-view.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 82a4de2..5f9e758 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]