libfreerdp-codec: fix incorrect pixel increment in freerdp_image24_copy

This commit is contained in:
Marc-André Moreau 2014-10-23 15:50:24 -04:00
parent 1c7ed224b6
commit 765150e3ed

View File

@ -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;
}