From dbed3e2b11e9a7c9f3b8d7c8b18e3e6be77ede97 Mon Sep 17 00:00:00 2001 From: Lucas Neves Date: Sun, 19 Nov 2017 16:01:28 -0500 Subject: Select: Bug fixes in the generator. --- src/select/overrides.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/select/overrides.py') 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) -- cgit v1.2.3