diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-24 08:16:33 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-24 08:16:33 +0200 |
commit | 2bd3cfa55508b588716a68fc2c244c29ddc35e48 (patch) | |
tree | 47369823d0c545eb79f22ec2574b9b440aa2b3d7 | |
parent | a694e1b9b94c048b0407f02513613d69881d6f04 (diff) |
bgr -> rgb
-rw-r--r-- | src/cssparser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index ae59670b..f235048b 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -727,7 +727,7 @@ bool CssParser::parseRgbColor(int32_t *c) { if (!parseRgbColorComponent(&cc, &percentage)) return false; - *c |= cc; + *c |= cc << 16; if (ttype != CSS_TK_CHAR || tval[0] != ',') { MSG_CSS("expected '%s' not found in rgb color\n", ","); @@ -747,7 +747,7 @@ bool CssParser::parseRgbColor(int32_t *c) { if (!parseRgbColorComponent(&cc, &percentage)) return false; - *c |= cc << 16; + *c |= cc; if (ttype != CSS_TK_CHAR || tval[0] != ')') { MSG_CSS("expected '%s' not found in rgb color\n", ")"); |