diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-11-23 15:33:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-11-23 15:33:29 +0100 |
commit | a6662d8d2d7b499aa5c18fd725a189863b6d21fb (patch) | |
tree | ca3f430f6a6ed58f8a421b4dd20c7226743646a6 /php-lessphp-pr626.patch | |
parent | 6f680fe8ffb7566ab823674c69ce5e2ea11a0ed6 (diff) |
Diffstat (limited to 'php-lessphp-pr626.patch')
-rw-r--r-- | php-lessphp-pr626.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/php-lessphp-pr626.patch b/php-lessphp-pr626.patch new file mode 100644 index 0000000..47c1a7a --- /dev/null +++ b/php-lessphp-pr626.patch @@ -0,0 +1,23 @@ +From 6cabd199faf47a2f38b70e3c98f563817b43273a Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Wed, 23 Nov 2016 15:20:43 +0100 +Subject: [PATCH 1/2] fix lib_luma + +--- + lessc.inc.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lessc.inc.php b/lessc.inc.php +index 2292f21..b639c3e 100644 +--- a/lessc.inc.php ++++ b/lessc.inc.php +@@ -1273,7 +1273,7 @@ protected function lib_contrast($args) { + + protected function lib_luma($color) { + $color = $this->coerceColor($color); +- return (0.2126 * $color[0] / 255) + (0.7152 * $color[1] / 255) + (0.0722 * $color[2] / 255); ++ return (0.2126 * $color[1] / 255) + (0.7152 * $color[2] / 255) + (0.0722 * $color[3] / 255); + } + + + |