From 5dab62a2f922a515634d65b133aeb089e855b399 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 23 Jun 2009 17:12:39 +0200 Subject: [PATCH] Fix BlendColorBurn It should return 0 when sa == 0 --- pixman/pixman-combine.c.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-combine.c.template b/pixman/pixman-combine.c.template index 7c8efd9..f80e1a9 100644 --- a/pixman/pixman-combine.c.template +++ b/pixman/pixman-combine.c.template @@ -564,7 +564,7 @@ static inline comp4_t BlendColorBurn (comp4_t dca, comp4_t da, comp4_t sca, comp4_t sa) { if (sca == 0) { - return DivOne (sa * da); + return 0; } else { comp4_t sada = sa * da; comp4_t rca = (da - dca) * sa * sa / sca; -- 2.7.4