From: Soren Sandmann Pedersen Date: Mon, 21 May 2007 19:03:41 +0000 (-0400) Subject: Fix bug in fbCompositeGetSolid() where a format was compared to a format type X-Git-Tag: pixman-0.9.4~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccef70a685191bb3cd4b7891f1ebde1881b3aa13;p=platform%2Fupstream%2Fpixman.git Fix bug in fbCompositeGetSolid() where a format was compared to a format type --- diff --git a/pixman/pixman-pict.c b/pixman/pixman-pict.c index 6fb349d..37b27c5 100644 --- a/pixman/pixman-pict.c +++ b/pixman/pixman-pict.c @@ -22,6 +22,7 @@ * Author: Keith Packard, SuSE, Inc. */ +#include #include #include "pixman.h" #include "pixman-private.h" @@ -54,9 +55,9 @@ return; \ } \ /* If necessary, convert RGB <--> BGR. */ \ - if (format__ != PIXMAN_FORMAT_TYPE(fmt)) \ + if (PIXMAN_FORMAT_TYPE (format__) != PIXMAN_FORMAT_TYPE(fmt)) \ { \ - (res) = (((res) & 0xff000000) | \ + (res) = ((((res) & 0xff000000) >> 0) | \ (((res) & 0x00ff0000) >> 16) | \ (((res) & 0x0000ff00) >> 0) | \ (((res) & 0x000000ff) << 16)); \ @@ -159,7 +160,7 @@ fbCompositeSolidMask_nx8x8888 (pixman_op_t op, uint16_t w; fbComposeGetSolid(pSrc, src, pDst->bits.format); - + dstMask = FbFullMask (PIXMAN_FORMAT_DEPTH (pDst->bits.format)); srca = src >> 24; if (src == 0)