From 288df6ddc1da586d7f42b9cfd0830752784b2f4d Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Sat, 9 Aug 2008 14:52:47 +0200 Subject: [PATCH] [10/10] x11drv / user: Fix 32bpp (BGRA) cursors --- dlls/user32/cursoricon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 9ec28c2f5d4..6ebb65b9821 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -1097,6 +1097,10 @@ static BOOL load_cursor_frame( LPBYTE bits, UINT cbSize, POINT16 hotspot, DWORD hXorBits = CreateBitmap(width, height, 1, 1, NULL); SetDIBits(screen_dc, hXorBits, 0, height, (char*)bmi + size, pInfo, DIB_RGB_COLORS); + } else if (bmi->bmiHeader.biBitCount == 32) { + hXorBits = CreateDIBSection(screen_dc, pInfo, DIB_RGB_COLORS, NULL, NULL, 0); + SetDIBits(screen_dc, hXorBits, 0, height, + (char*)bmi + size, pInfo, DIB_RGB_COLORS); } else hXorBits = CreateDIBitmap(screen_dc, &pInfo->bmiHeader, -- 2.11.4.GIT