summaryrefslogtreecommitdiffstats
path: root/php-lessphp-pr626.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-23 15:33:29 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-23 15:33:29 +0100
commita6662d8d2d7b499aa5c18fd725a189863b6d21fb (patch)
treeca3f430f6a6ed58f8a421b4dd20c7226743646a6 /php-lessphp-pr626.patch
parent6f680fe8ffb7566ab823674c69ce5e2ea11a0ed6 (diff)
php-lessphp: add fixHEADmaster
Diffstat (limited to 'php-lessphp-pr626.patch')
-rw-r--r--php-lessphp-pr626.patch23
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);
+ }
+
+
+