mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-11 13:20:54 +00:00
wined3d: Don't use the stack as cursor mask (Valgrind).
This commit is contained in:
parent
342a71b281
commit
53104ac1e7
|
@ -6376,12 +6376,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice* i
|
|||
cursorInfo.fIcon = FALSE;
|
||||
cursorInfo.xHotspot = XHotSpot;
|
||||
cursorInfo.yHotspot = YHotSpot;
|
||||
cursorInfo.hbmMask = CreateBitmap(pSur->currentDesc.Width,
|
||||
pSur->currentDesc.Height, 1,
|
||||
1, &maskBits);
|
||||
cursorInfo.hbmColor = CreateBitmap(pSur->currentDesc.Width,
|
||||
pSur->currentDesc.Height, 1,
|
||||
32, lockedRect.pBits);
|
||||
cursorInfo.hbmMask = CreateBitmap(pSur->currentDesc.Width, pSur->currentDesc.Height,
|
||||
1, 1, maskBits);
|
||||
cursorInfo.hbmColor = CreateBitmap(pSur->currentDesc.Width, pSur->currentDesc.Height,
|
||||
1, 32, lockedRect.pBits);
|
||||
IWineD3DSurface_UnlockRect(pCursorBitmap);
|
||||
/* Create our cursor and clean up. */
|
||||
cursor = CreateIconIndirect(&cursorInfo);
|
||||
|
|
Loading…
Reference in a new issue