mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Proper rounding
This commit is contained in:
parent
17f2443350
commit
0f83a9550b
@ -8659,8 +8659,8 @@ gtk_widget_accessible_get_bounds (GtkAccessible *self,
|
|||||||
{
|
{
|
||||||
*x = floorf (graphene_rect_get_x (&bounds));
|
*x = floorf (graphene_rect_get_x (&bounds));
|
||||||
*y = floorf (graphene_rect_get_y (&bounds));
|
*y = floorf (graphene_rect_get_y (&bounds));
|
||||||
*width = ceilf (graphene_rect_get_width (&bounds));
|
*width = ceil (*x + graphene_rect_get_width (&bounds)) - *x;
|
||||||
*height = ceilf (graphene_rect_get_height (&bounds));
|
*height = ceil (*y + graphene_rect_get_height (&bounds)) - *y;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user