From 765150e3edd020af1e14754b9922b18f5b615aea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Moreau?= Date: Thu, 23 Oct 2014 15:50:24 -0400 Subject: [PATCH] libfreerdp-codec: fix incorrect pixel increment in freerdp_image24_copy --- libfreerdp/codec/color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/codec/color.c b/libfreerdp/codec/color.c index 09c1038..49e57c0 100644 --- a/libfreerdp/codec/color.c +++ b/libfreerdp/codec/color.c @@ -2719,7 +2719,7 @@ int freerdp_image24_copy(BYTE* pDstData, DWORD DstFormat, int nDstStep, int nXDs pDstPixel[2] = pSrcPixel[0]; pDstPixel[3] = 0xFF; - pSrcPixel += 4; + pSrcPixel += 3; pDstPixel += 4; } @@ -2741,7 +2741,7 @@ int freerdp_image24_copy(BYTE* pDstData, DWORD DstFormat, int nDstStep, int nXDs pDstPixel[2] = pSrcPixel[0]; pDstPixel[3] = 0xFF; - pSrcPixel += 4; + pSrcPixel += 3; pDstPixel += 4; } -- 2.7.4