From: Armin Novak Date: Wed, 20 Jul 2016 13:58:05 +0000 (+0200) Subject: Fixed BitBlt_PSDPxax X-Git-Tag: 2.0.0-beta1+android10~160^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3f88ad7ec8feace225d7642f30e89ea254a0476;p=platform%2Fupstream%2Ffreerdp.git Fixed BitBlt_PSDPxax --- diff --git a/libfreerdp/gdi/bitmap.c b/libfreerdp/gdi/bitmap.c index b7969f9..39d0a04 100644 --- a/libfreerdp/gdi/bitmap.c +++ b/libfreerdp/gdi/bitmap.c @@ -558,7 +558,7 @@ static BOOL BitBlt_PSDPxax(HGDI_DC hdcDest, UINT32 nXDest, UINT32 nYDest, UINT32 colorB = ReadColor(dstp, hdcDest->format); colorA = ConvertColor(colorA, hdcSrc->format, hdcDest->format, palette); - color = (colorA ^ colorB) & (colorA ^ colorC); + color = (colorA ^ colorC) & (colorB ^ colorC); WriteColor(dstp, hdcDest->format, color); } } @@ -585,7 +585,7 @@ static BOOL BitBlt_PSDPxax(HGDI_DC hdcDest, UINT32 nXDest, UINT32 nYDest, UINT32 colorC = ReadColor(patp, hdcDest->format); colorA = ConvertColor(colorA, hdcSrc->format, hdcDest->format, palette); - color = (colorA ^ colorB) & (colorA ^ colorC); + color = (colorA ^ colorC) & (colorB ^ colorC); WriteColor(dstp, hdcDest->format, color); } }