[gtk+/wip/ebassi/gsk-renderer: 3/4] fixup! gtk: Use GskRenderNode to render widgets



commit ef1e3964ca206e293b932aad5a48adaca5d62fb0
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 30 17:03:18 2016 +0100

    fixup! gtk: Use GskRenderNode to render widgets

 gtk/gtkwindow.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d987434..78da819 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7581,6 +7581,8 @@ _gtk_window_set_allocation (GtkWindow           *window,
     {
       graphene_rect_t viewport;
       graphene_matrix_t projection;
+      graphene_matrix_t modelview;
+      graphene_point3d_t tmp;
 
       graphene_rect_init (&viewport, 0, 0, allocation->width, allocation->height);
       gsk_renderer_set_viewport (priv->renderer, &viewport);
@@ -7590,6 +7592,10 @@ _gtk_window_set_allocation (GtkWindow           *window,
                                   0, allocation->height,
                                   -1, 1);
       gsk_renderer_set_projection (priv->renderer, &projection);
+
+      graphene_matrix_init_translate (&modelview,
+                                      graphene_point3d_init (&tmp, 0.f, 0.f, 0.f));
+      gsk_renderer_set_modelview (priv->renderer, &modelview);
     }
 
   get_shadow_width (window, &window_border);


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