From 3898b56618fd061f2f38787052c804962fa03db0 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 20 Jul 2016 16:03:08 +0200 Subject: [PATCH] Fixed drawing orders. --- libfreerdp/gdi/bitmap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfreerdp/gdi/bitmap.c b/libfreerdp/gdi/bitmap.c index 39d0a04be..f899290da 100644 --- a/libfreerdp/gdi/bitmap.c +++ b/libfreerdp/gdi/bitmap.c @@ -426,7 +426,7 @@ static BOOL BitBlt_DSPDxax(HGDI_DC hdcDest, UINT32 nXDest, UINT32 nYDest, UINT32 colorB = ReadColor(dstp, hdcDest->format); colorA = ConvertColor(colorA, hdcSrc->format, hdcDest->format, palette); - dstColor = (colorA ^ color) & (colorA ^ colorB); + dstColor = (colorB ^ colorA) & (color ^ colorB); WriteColor(dstp, hdcDest->format, dstColor); } } @@ -453,7 +453,7 @@ static BOOL BitBlt_DSPDxax(HGDI_DC hdcDest, UINT32 nXDest, UINT32 nYDest, UINT32 colorB = ReadColor(dstp, hdcDest->format); colorA = ConvertColor(colorA, hdcSrc->format, hdcDest->format, palette); - dstColor = (colorA ^ color) & (colorA ^ colorB); + dstColor = (colorB ^ colorA) & (color ^ colorB); WriteColor(dstp, hdcDest->format, dstColor); } } @@ -492,7 +492,7 @@ static BOOL BitBlt_DSPDxox(HGDI_DC hdcDest, UINT32 nXDest, UINT32 nYDest, UINT32 colorB = ReadColor(dstp, hdcDest->format); colorA = ConvertColor(colorA, hdcSrc->format, hdcDest->format, palette); - dstColor = (colorA ^ color) | (colorA ^ colorB); + dstColor = (colorA ^ colorB) | (color ^ colorB); WriteColor(dstp, hdcDest->format, dstColor); } } @@ -519,7 +519,7 @@ static BOOL BitBlt_DSPDxox(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 ^ colorB) | (colorB ^ colorC); WriteColor(dstp, hdcDest->format, color); } }