Change-Id: I7964e445ecd549677984f8ccb65990b50a876a14
cairo_paint_with_alpha(cairo, 0);
/* set the size of bubble */
- int bx = x + 2;
- int by = y + 2;
- int bw = w - bx * 2;
- int bh = h - by - _OVERLAY_BUBBLE_PIN_SIZE;
+ double bx = x + 2;
+ double by = y + 2;
+ double bw = w - bx * 2;
+ double bh = h - by - _OVERLAY_BUBBLE_PIN_SIZE;
/* build a path */
cairo_new_path(cairo);
float y_rotated = x_shifted * sina - y_shifted * cosa;
if ((x_rotated >= 0) && (x_rotated <= c)
- && (y_rotated >= (-1. * (accuracy + w / 2)))
- && (y_rotated <= (accuracy + w / 2)))
+ && (y_rotated >= (-1. * (accuracy + (float)w / 2))
+ && (y_rotated <= (accuracy + (float)w / 2)))
return true;
return false;
}