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




commit 349f07284a6a1cdc393722de387e20927ef9a5e9
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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/ngl/gsknglglyphlibraryprivate.h b/gsk/ngl/gsknglglyphlibraryprivate.h
index 780054eb63..a9f099c0b5 100644
--- a/gsk/ngl/gsknglglyphlibraryprivate.h
+++ b/gsk/ngl/gsknglglyphlibraryprivate.h
@@ -33,9 +33,9 @@ typedef struct _GskNglGlyphKey
 {
   PangoFont *font;
   PangoGlyph glyph;
-  guint xshift : 3;
-  guint yshift : 3;
-  guint scale  : 26; /* times 1024 */
+  guint xshift : 2;
+  guint yshift : 2;
+  guint scale  : 28; /* times 1024 */
 } GskNglGlyphKey;
 
 typedef struct _GskNglGlyphValue


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