1 From 584c9bcfed7295e5e0a9d5caafb32a5020b74300 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Mon, 12 Jan 2015 17:10:07 +0100
4 Subject: [PATCH] lrf: compute color interpolation coeff. correctly
7 src/lib/LRFCollector.cpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/lib/LRFCollector.cpp b/src/lib/LRFCollector.cpp
11 index 1c02593..3fbee2e 100644
12 --- a/src/lib/LRFCollector.cpp
13 +++ b/src/lib/LRFCollector.cpp
14 @@ -50,7 +50,7 @@ const LRFColor combine(const LRFColor &fg, const LRFColor &bg)
18 - const double a = fg.a / 255.0;
19 + const double a = 1 - fg.a / 255.0;
21 const double r = (1 - a) * bg.r + a * fg.r;
22 const double g = (1 - a) * bg.g + a * fg.g;