From: Po Lu Date: Sun, 17 Dec 2023 12:55:23 +0000 (+0800) Subject: * src/sfnt.h (sfnt_coerce_fixed): New macro. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=678a594f4f3ddd24a46253d77237580fe4db9fc1;p=emacs.git * src/sfnt.h (sfnt_coerce_fixed): New macro. --- 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; };