diff options
author | Lucas Neves <lcneves@gmail.com> | 2017-11-19 16:01:28 -0500 |
---|---|---|
committer | Lucas Neves <lcneves@gmail.com> | 2017-11-19 16:01:28 -0500 |
commit | dbed3e2b11e9a7c9f3b8d7c8b18e3e6be77ede97 (patch) | |
tree | f0525fa625ef0b13a73da8f7e21c1e34d13c6b1c /src/select/overrides.py | |
parent | 9dbc87e8f86654b041d5428bd15975e7df5dcea9 (diff) | |
download | libcss-dbed3e2b11e9a7c9f3b8d7c8b18e3e6be77ede97.tar.gz libcss-dbed3e2b11e9a7c9f3b8d7c8b18e3e6be77ede97.tar.bz2 |
Select: Bug fixes in the generator.lcneves/select-autogen
Diffstat (limited to 'src/select/overrides.py')
-rw-r--r-- | src/select/overrides.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/select/overrides.py b/src/select/overrides.py index fc2117b..c8d1a2a 100644 --- a/src/select/overrides.py +++ b/src/select/overrides.py @@ -32,16 +32,16 @@ static inline uint8_t get_clip( rect->top_auto = (bits & 0x20); rect->top = style->i.uncommon->i.clip_a; - rect->tunit = bits & 0x3e00000; + rect->tunit = bits & 0x3e00000 >> 21; rect->right = style->i.uncommon->i.clip_b; - rect->runit = bits & 0x1f0000; + rect->runit = bits & 0x1f0000 >> 16; rect->bottom = style->i.uncommon->i.clip_c; - rect->bunit = bits & 0xf800; + rect->bunit = (bits & 0xf800) >> 11; rect->left = style->i.uncommon->i.clip_d; - rect->lunit = bits & 0x7c0; + rect->lunit = (bits & 0x7c0) >> 6; } return (bits & 0x3); @@ -208,7 +208,7 @@ static inline uint8_t get_{0}( *unit = bits >> 2; }} - return (bits & 0x7); + return (bits & 0x3); }} static inline uint8_t get_{0}_bits( const css_computed_style *style) |