emacs-diffs
[Top][All Lists]
Advanced

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

master 678a594f4f3 3/3: * src/sfnt.h (sfnt_coerce_fixed): New macro.


From: Po Lu
Subject: master 678a594f4f3 3/3: * src/sfnt.h (sfnt_coerce_fixed): New macro.
Date: Sun, 17 Dec 2023 07:58:12 -0500 (EST)

branch: master
commit 678a594f4f3ddd24a46253d77237580fe4db9fc1
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * src/sfnt.h (sfnt_coerce_fixed): New macro.
---
 src/sfnt.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sfnt.h b/src/sfnt.h
index 42ae64c362b..a875c1a722d 100644
--- a/src/sfnt.h
+++ b/src/sfnt.h
@@ -123,6 +123,7 @@ typedef int16_t sfnt_fword;
 typedef uint16_t sfnt_ufword;
 
 #define sfnt_coerce_fixed(fixed) ((sfnt_fixed) (fixed) / 65535.0)
+#define sfnt_fixed_float(fixed)  ((sfnt_fixed) (fixed) / 65535.0f)
 
 typedef unsigned int sfnt_glyph;
 typedef unsigned int sfnt_char;
@@ -778,7 +779,7 @@ struct sfnt_edge
   /* X position, top and bottom of edges.  */
   sfnt_fixed x, top, bottom;
 
-  /* Amount to move X by upon each change of Y.  */
+  /* Amount to move X by upon each change of Y, and vice versa.  */
   sfnt_fixed step_x;
 };
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]