aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cssparser.cc4
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", ")");