diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index a3d49aaa..ac87315b 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -835,26 +835,12 @@ static CaptureResult dxgi_capture() return CAPTURE_RESULT_ERROR; } - CURSORINFO ci = { .cbSize = sizeof(CURSORINFO) }; - ICONINFO ii; - if (GetCursorInfo(&ci) && ci.hCursor && GetIconInfo(ci.hCursor, &ii)) - { - DeleteObject(ii.hbmMask); - DeleteObject(ii.hbmColor); - - pointer.hx = ii.xHotspot; - pointer.hy = ii.yHotspot; - } - else - { - pointer.hx = 0; - pointer.hy = 0; - } - pointer.shapeUpdate = true; pointer.width = shapeInfo.Width; pointer.height = shapeInfo.Height; pointer.pitch = shapeInfo.Pitch; + pointer.hx = shapeInfo.HotSpot.x; + pointer.hy = shapeInfo.HotSpot.y; postPointer = true; } }