mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +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));
|
||||
*y = floorf (graphene_rect_get_y (&bounds));
|
||||
*width = ceilf (graphene_rect_get_width (&bounds));
|
||||
*height = ceilf (graphene_rect_get_height (&bounds));
|
||||
*width = ceil (*x + graphene_rect_get_width (&bounds)) - *x;
|
||||
*height = ceil (*y + graphene_rect_get_height (&bounds)) - *y;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user