Fixed pointer color mapping.

This commit is contained in:
Armin Novak 2016-10-10 09:19:43 +02:00
parent 267dea928c
commit 249bb1292f

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));