Merge pull request #3534 from akallabeth/x11_pointer_color

Fixed pointer color mapping.
This commit is contained in:
Martin Fleisz 2016-10-10 11:31:57 +02:00 committed by GitHub
commit 06a04a0199

View File

@ -168,7 +168,7 @@ static BOOL xf_Bitmap_SetSurface(rdpContext* context, rdpBitmap* bitmap,
static BOOL xf_Pointer_New(rdpContext* context, rdpPointer* pointer)
{
#ifdef WITH_XCURSOR
UINT32 CursorFormat = PIXEL_FORMAT_RGBA32;
UINT32 CursorFormat;
rdpGdi* gdi;
size_t size;
XcursorImage ci;
@ -178,6 +178,11 @@ static BOOL xf_Pointer_New(rdpContext* context, rdpPointer* pointer)
if (!context || !pointer || !context->gdi)
return FALSE;
if (!xfc->invert)
CursorFormat = PIXEL_FORMAT_RGBA32;
else
CursorFormat = PIXEL_FORMAT_BGRA32;
gdi = context->gdi;
xf_lock_x11(xfc, FALSE);
ZeroMemory(&ci, sizeof(ci));