[gtk+/wip/matthiasc/gskpango] Avoid computing the same thing twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gskpango] Avoid computing the same thing twice
- Date: Thu, 31 Aug 2017 18:35:45 +0000 (UTC)
commit 694e8e35dddd824f5a92a5204391d2a18fcd2bca
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 30 23:22:03 2017 -0400
Avoid computing the same thing twice
Trivial cleanup.
gtk/gtkrendericon.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkrendericon.c b/gtk/gtkrendericon.c
index ff7eac9..3ec7a3b 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]