On Mon, Sep 20, 2021 at 12:47:17PM +0530, Rupesh gautam wrote: > Hi, > > I was trying out libcss and found that the following code snippet returns > value multiplied by 1024. > > *css_unit unit;* > > *css_fixed val;css_computed_margin_top(styles[0], &val, &unit);std::cout << > val << std::endl;*
css_fixed is libcss's fixed point type: it is not an integer. You can see the functions and macros available to manipulate and convert them in fpmath.h: http://git.netsurf-browser.org/libcss.git/tree/include/libcss/fpmath.h B. _______________________________________________ netsurf-dev mailing list -- netsurf-dev@netsurf-browser.org To unsubscribe send an email to netsurf-dev-le...@netsurf-browser.org