Merge pull request #5704 from XiaopengZHOU/cursor-xor-padding

Fix padding of encoded scan-line for XOR mask of pointer.
This commit is contained in:
David Fort 2019-11-07 10:48:56 +01:00 committed by GitHub
commit d32e7f12e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,6 +421,7 @@ BOOL freerdp_image_copy_from_pointer_data(
{
UINT32 xorBytesPerPixel = xorBpp >> 3;
xorStep = nWidth * xorBytesPerPixel;
xorStep += (xorStep % 2);
if (xorBpp == 8 && !palette)
{