From d4aebca5ef0fcb062d3c395dc53bfe59c459ca81 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 12 Jan 2015 17:45:19 +0100 Subject: fix extension Change-Id: I05923b7df753fdbc23f849c89f4f9f52a07915c7 --- ...pute-color-interpolation-coeff.-correctly.patch | 25 ---------------------- ...te-color-interpolation-coeff.-correctly.patch.1 | 25 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch create mode 100644 external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch.1 (limited to 'external/libebook') diff --git a/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch b/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch deleted file mode 100644 index dba57ac64a67..000000000000 --- a/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 584c9bcfed7295e5e0a9d5caafb32a5020b74300 Mon Sep 17 00:00:00 2001 -From: David Tardon -Date: Mon, 12 Jan 2015 17:10:07 +0100 -Subject: [PATCH] lrf: compute color interpolation coeff. correctly - ---- - src/lib/LRFCollector.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/lib/LRFCollector.cpp b/src/lib/LRFCollector.cpp -index 1c02593..3fbee2e 100644 ---- a/src/lib/LRFCollector.cpp -+++ b/src/lib/LRFCollector.cpp -@@ -50,7 +50,7 @@ const LRFColor combine(const LRFColor &fg, const LRFColor &bg) - { - assert(0 == bg.a); - -- const double a = fg.a / 255.0; -+ const double a = 1 - fg.a / 255.0; - - const double r = (1 - a) * bg.r + a * fg.r; - const double g = (1 - a) * bg.g + a * fg.g; --- -2.1.0 - diff --git a/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch.1 b/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch.1 new file mode 100644 index 000000000000..dba57ac64a67 --- /dev/null +++ b/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch.1 @@ -0,0 +1,25 @@ +From 584c9bcfed7295e5e0a9d5caafb32a5020b74300 Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Mon, 12 Jan 2015 17:10:07 +0100 +Subject: [PATCH] lrf: compute color interpolation coeff. correctly + +--- + src/lib/LRFCollector.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/LRFCollector.cpp b/src/lib/LRFCollector.cpp +index 1c02593..3fbee2e 100644 +--- a/src/lib/LRFCollector.cpp ++++ b/src/lib/LRFCollector.cpp +@@ -50,7 +50,7 @@ const LRFColor combine(const LRFColor &fg, const LRFColor &bg) + { + assert(0 == bg.a); + +- const double a = fg.a / 255.0; ++ const double a = 1 - fg.a / 255.0; + + const double r = (1 - a) * bg.r + a * fg.r; + const double g = (1 - a) * bg.g + a * fg.g; +-- +2.1.0 + -- cgit