From 767bf1b3fd4c0ed2aca0de90bf5e702b08b84e76 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 30 Aug 2017 23:22:03 -0400 Subject: Avoid computing the same thing twice Trivial cleanup. --- gtk/gtkrendericon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gtk/gtkrendericon.c') diff --git a/gtk/gtkrendericon.c b/gtk/gtkrendericon.c index ff7eac978e..3ec7a3b562 100644 --- a/gtk/gtkrendericon.c +++ b/gtk/gtkrendericon.c @@ -301,10 +301,7 @@ gtk_css_style_snapshot_icon_texture (GtkCssStyle *style, if (graphene_matrix_is_identity (&transform_matrix)) { - graphene_rect_init (&bounds, - 0, 0, - gsk_texture_get_width (texture) / texture_scale, - gsk_texture_get_height (texture) / texture_scale); + graphene_rect_init (&bounds, 0, 0, width, height); gtk_snapshot_append_texture (snapshot, texture, &bounds, "Icon"); } else -- cgit v1.2.1