[gtk/wip/chergert/glproto: 149/493] cleanup style




commit 9d7ffd2185d04fd259fc2ffceec678fc9d4c988d
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 8 19:28:22 2021 -0800

    cleanup style

 gsk/next/gskglrenderjob.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index dcfabbb2ad..ed8026acae 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -985,19 +985,17 @@ static void
 gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob *job,
                                            GskRenderNode  *node)
 {
-  const GskRoundedRect *clip;
-  GskRenderNode *child;
+  GskRenderNode *child = gsk_rounded_clip_node_get_child (node);
+  const GskRoundedRect *clip = gsk_rounded_clip_node_get_clip (node);
   GskRoundedRect current_clip;
   GskRoundedRect transformed_clip;
   float scale_x = job->scale_x;
   float scale_y = job->scale_y;
   gboolean need_offscreen;
 
-  child = gsk_rounded_clip_node_get_child (node);
   if (node_is_invisible (child))
     return;
 
-  clip = gsk_rounded_clip_node_get_clip (node);
   current_clip = *gsk_gl_render_job_get_clip (job);
 
   gsk_gl_render_job_transform_bounds (job, &clip->bounds, &transformed_clip.bounds);


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