[gtk/ngl-text-tweaks-1: 2/3] ngl: We only need two bits for phases
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ngl-text-tweaks-1: 2/3] ngl: We only need two bits for phases
- Date: Tue, 30 Mar 2021 04:20:29 +0000 (UTC)
commit d4ea2e848d16f4d555a7f4457ebbd99b4241fa1c
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 5bf240e5e1..819523144c 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]