[gtk/matthiasc/for-master] ngl: Cosmetics




commit 09deb1d757332652694772fe0e49254e606bf2a4
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 26 07:40:08 2021 -0400

    ngl: Cosmetics
    
    Use the macro we already have to check that colors
    are fully transparent.

 gsk/ngl/gsknglrenderjob.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index 2351379b2e..87c407cd9b 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -1397,7 +1397,7 @@ gsk_ngl_render_job_visit_color_node (GskNglRenderJob     *job,
   GskNglCommandBatch *batch;
 
   rgba = gsk_color_node_get_color (node);
-  if (gdk_rgba_is_clear (rgba))
+  if (RGBA_IS_CLEAR (rgba))
     return;
 
   rgba_to_half (rgba, color);
@@ -2869,7 +2869,7 @@ gsk_ngl_render_job_visit_text_node (GskNglRenderJob     *job,
    */
   if (force_color || !gsk_text_node_has_color_glyphs (node))
     {
-      if (gdk_rgba_is_clear (color))
+      if (RGBA_IS_CLEAR (color))
         return;
 
       rgba_to_half (color, c);


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