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_computed_margin_top(styles[0], &val, &unit);
std::cout << val << std::endl;
For example: if my margin is set to 2px, returned Val would be 2048.
Is there a function that can return actual values (Not bit-shifted values)?
if not, then could you please confirm that all CSS values are left-shifted by 10 bits. in that case, I can right shift for all the values.
Regards
No comments:
Post a Comment