[gtk/ngl-text-tweaks: 8/8] ngl: We only need two bits for phases




commit fbb3e96766a87bd9988f01ea60784f65413b7a85
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 28 21:13:23 2021 -0400

    ngl: We only need two bits for phases
    
    We use 4 phases, so 2 bits are enough.

 gsk/ngl/gsknglglyphlibraryprivate.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/ngl/gsknglglyphlibraryprivate.h b/gsk/ngl/gsknglglyphlibraryprivate.h
index 780054eb63..6c4fa78638 100644
--- a/gsk/ngl/gsknglglyphlibraryprivate.h
+++ b/gsk/ngl/gsknglglyphlibraryprivate.h
@@ -33,8 +33,8 @@ typedef struct _GskNglGlyphKey
 {
   PangoFont *font;
   PangoGlyph glyph;
-  guint xshift : 3;
-  guint yshift : 3;
+  guint xshift : 2;
+  guint yshift : 2;
   guint scale  : 26; /* times 1024 */
 } GskNglGlyphKey;
 


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