[gtk/gtk-4-2: 14/91] ngl: Fix an oversight




commit b4844e2ace925222665e109b8853d2728184d991
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 4 23:44:26 2021 -0400

    ngl: Fix an oversight
    
    We were special-casing 2D affine transforms,
    but overlooked even simpler transforms.

 gsk/ngl/gsknglrenderjob.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index 0bd6c94b68..3e823dedab 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -726,7 +726,7 @@ gsk_ngl_render_job_transform_bounds (GskNglRenderJob       *job,
   /* Our most common transform is 2d-affine, so inline it.
    * Both identity and 2d-translate are virtually unseen here.
    */
-  if G_LIKELY (category == GSK_TRANSFORM_CATEGORY_2D_AFFINE)
+  if G_LIKELY (category >= GSK_TRANSFORM_CATEGORY_2D_AFFINE)
     {
       float dx, dy, scale_x, scale_y;
 


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