diff options
author | David Tardon <dtardon@redhat.com> | 2015-01-12 17:12:31 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-01-12 17:19:57 +0100 |
commit | 34fb25cd5bbf056e127f457a7a02d01efd65a8eb (patch) | |
tree | c3c16d7baa061fab85e4a40aedc56fda4b1c5dd4 /external/libebook | |
parent | 2aa40ecebb2cb1e5d2cf85d7ada70b5e541bad67 (diff) |
fix alpha computation, followup
Change-Id: I7701368e152ce20adbc05802c7c6518183919d1f
Diffstat (limited to 'external/libebook')
-rw-r--r-- | external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch | 25 | ||||
-rw-r--r-- | external/libebook/UnpackedTarball_libebook.mk | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch b/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch new file mode 100644 index 000000000000..dba57ac64a67 --- /dev/null +++ b/external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch @@ -0,0 +1,25 @@ +From 584c9bcfed7295e5e0a9d5caafb32a5020b74300 Mon Sep 17 00:00:00 2001 +From: David Tardon <dtardon@redhat.com> +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/UnpackedTarball_libebook.mk b/external/libebook/UnpackedTarball_libebook.mk index 5c02bf4f9f2e..02c17db4aa5f 100644 --- a/external/libebook/UnpackedTarball_libebook.mk +++ b/external/libebook/UnpackedTarball_libebook.mk @@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libebook,0)) $(eval $(call gb_UnpackedTarball_add_patches,libebook, \ external/libebook/ubsan.patch \ + external/libebook/0001-lrf-compute-color-interpolation-coeff.-correctly.patch.1 \ )) # vim: set noet sw=4 ts=4: |