From 64ac7401ad5022462279dff4dcfb12844c9857ae Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 28 Dec 2005 10:43:02 +0000 Subject: [PATCH] Fix a copy'n'paste-o that would result in mis-rounding of the results of several composite operators in A and G channels. --- ChangeLog | 6 ++++++ fb/fbpict.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c4eda12c3..e7aa29fa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-28 Eric Anholt + + * fb/fbpict.h: + Fix a copy'n'paste-o that would result in mis-rounding of the results of + several composite operators in A and G channels. + 2005-12-28 Eric Anholt * Xext/shmint.h: diff --git a/fb/fbpict.h b/fb/fbpict.h index 665b92dd1..9546b134f 100644 --- a/fb/fbpict.h +++ b/fb/fbpict.h @@ -173,7 +173,7 @@ x = (x + ((x >> 8) & 0xff00ff)) >> 8; \ x &= 0xff00ff; \ x += (y >> 8) & 0xff00ff; \ - x |= 0x1000100 - ((t >> 8) & 0xff00ff); \ + x |= 0x1000100 - ((x >> 8) & 0xff00ff); \ x &= 0xff00ff; \ x <<= 8; \ x += t; \