mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
render: Fix a position/size mixup
Fixes the foreigndrawing demo.
This commit is contained in:
parent
e656f66720
commit
5a3ecb9703
@ -636,7 +636,8 @@ gtk_render_icon (GtkStyleContext *context,
|
|||||||
gtk_css_style_snapshot_icon_paintable (gtk_style_context_lookup_style (context),
|
gtk_css_style_snapshot_icon_paintable (gtk_style_context_lookup_style (context),
|
||||||
snapshot,
|
snapshot,
|
||||||
GDK_PAINTABLE (texture),
|
GDK_PAINTABLE (texture),
|
||||||
x, y,
|
gdk_texture_get_width (texture),
|
||||||
|
gdk_texture_get_height (texture),
|
||||||
FALSE);
|
FALSE);
|
||||||
node = gtk_snapshot_free_to_node (snapshot);
|
node = gtk_snapshot_free_to_node (snapshot);
|
||||||
if (node == NULL)
|
if (node == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user