32bpp cursor fix.

This commit is contained in:
Armin Novak 2016-08-02 17:11:27 +02:00
parent c00fc5715f
commit 60ac63854c

View File

@ -328,7 +328,7 @@ BOOL freerdp_image_copy_from_pointer_data(
if (xorBpp == 32)
{
pixelFormat = PIXEL_FORMAT_ARGB32;
pixelFormat = PIXEL_FORMAT_BGRA32;
xorPixel = ReadColor(xorBits, pixelFormat);
if (xorPixel & 0xFF000000)
@ -346,7 +346,7 @@ BOOL freerdp_image_copy_from_pointer_data(
}
else
{
pixelFormat = PIXEL_FORMAT_RGB24;
pixelFormat = PIXEL_FORMAT_BGR24;
xorPixel = ReadColor(xorBits, pixelFormat);
}