diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-08-29 21:10:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-09-30 15:36:00 +0100 |
commit | dd422bb7045f958adb5bab9786209d6a825f2613 (patch) | |
tree | bb8b2a76abde3d2ade088c77cc6491b925e90bb7 /include/netsurf/plot_style.h | |
parent | f819d17bb20ccdb7430deb56ebd3722cfbd3148b (diff) | |
download | netsurf-dd422bb7045f958adb5bab9786209d6a825f2613.tar.gz netsurf-dd422bb7045f958adb5bab9786209d6a825f2613.tar.bz2 |
fix plot style float to fix path width
Diffstat (limited to 'include/netsurf/plot_style.h')
-rw-r--r-- | include/netsurf/plot_style.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netsurf/plot_style.h b/include/netsurf/plot_style.h index f1b617231..11d506d74 100644 --- a/include/netsurf/plot_style.h +++ b/include/netsurf/plot_style.h @@ -50,6 +50,9 @@ typedef int32_t plot_style_fixed; /* Convert an int to fixed point */ #define plot_style_int_to_fixed(v) ((v) << PLOT_STYLE_RADIX) +/* Convert an float to fixed point */ +#define plot_style_float_to_fixed(v) ((v) * (1<<PLOT_STYLE_RADIX)) + /* Convert fixed point to int */ #define plot_style_fixed_to_int(v) ((v) >> PLOT_STYLE_RADIX) |