diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-03 22:16:43 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-03 22:33:34 -0400 |
commit | 70e56f0deac1788203200a76fbc40530b5f8c7d2 (patch) | |
tree | 0b28b7073cfbc8519013d974d30542385df9213c /gtk/gtkrendernodepaintable.c | |
parent | 9752395a1d14194e3b90c56c88cbee6446a3abd6 (diff) | |
download | gtk+-70e56f0deac1788203200a76fbc40530b5f8c7d2.tar.gz |
Revert "rendernodepaintable: Provide accurate aspect ratio"
This reverts commit 52a849288793e7eede878798a88760c058266f60.
It turned out to be the wrong fix.
Diffstat (limited to 'gtk/gtkrendernodepaintable.c')
-rw-r--r-- | gtk/gtkrendernodepaintable.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gtk/gtkrendernodepaintable.c b/gtk/gtkrendernodepaintable.c index 87bb1ca19a..1379ba3404 100644 --- a/gtk/gtkrendernodepaintable.c +++ b/gtk/gtkrendernodepaintable.c @@ -88,17 +88,6 @@ gtk_render_node_paintable_paintable_get_intrinsic_height (GdkPaintable *paintabl return ceilf (self->bounds.size.height); } -static double -gtk_render_node_paintable_paintable_get_intrinsic_aspect_ratio (GdkPaintable *paintable) -{ - GtkRenderNodePaintable *self = GTK_RENDER_NODE_PAINTABLE (paintable); - - if (self->bounds.size.height != 0) - return self->bounds.size.width / self->bounds.size.height; - - return 0; -} - static void gtk_render_node_paintable_paintable_init (GdkPaintableInterface *iface) { @@ -106,7 +95,6 @@ gtk_render_node_paintable_paintable_init (GdkPaintableInterface *iface) iface->get_flags = gtk_render_node_paintable_paintable_get_flags; iface->get_intrinsic_width = gtk_render_node_paintable_paintable_get_intrinsic_width; iface->get_intrinsic_height = gtk_render_node_paintable_paintable_get_intrinsic_height; - iface->get_intrinsic_aspect_ratio = gtk_render_node_paintable_paintable_get_intrinsic_aspect_ratio; } G_DEFINE_TYPE_EXTENDED (GtkRenderNodePaintable, gtk_render_node_paintable, G_TYPE_OBJECT, 0, |