[gtk] render: Fix a position/size mixup



commit 5a3ecb97039da8389990b3fa71dece5460250c8f
Author: Timm Bäder <mail baedert org>
Date:   Tue Nov 13 14:08:32 2018 +0100

    render: Fix a position/size mixup
    
    Fixes the foreigndrawing demo.

 gtk/gtkrender.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c
index 4162812dc5..78372e8d0c 100644
--- a/gtk/gtkrender.c
+++ b/gtk/gtkrender.c
@@ -636,7 +636,8 @@ gtk_render_icon (GtkStyleContext *context,
   gtk_css_style_snapshot_icon_paintable (gtk_style_context_lookup_style (context),
                                          snapshot,
                                          GDK_PAINTABLE (texture),
-                                         x, y,
+                                         gdk_texture_get_width (texture),
+                                         gdk_texture_get_height (texture),
                                          FALSE);
   node = gtk_snapshot_free_to_node (snapshot);
   if (node == NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]