plug-ins: Show correct cursor in Windows Screenshot

Resolves #14966
When "Include mouse pointer" is checked in the Windows
version of the Create Screenshot plug-in, we used the
GetCursor () Win32 API to get the cursor icon. However,
this just returns a generic cursor rather than the current one
used.
This patch changes the code to use the hCursor property of
the CursorInfo struct that was already retrieved, which contains
the current cursor's icon instead of the generic one.
This commit is contained in:
Alx Sa 2026-03-05 15:54:34 +00:00
parent d598a9147b
commit 7e63e661f0

View file

@ -466,7 +466,7 @@ primDoWindowCapture (HDC hdcWindow,
{
CURSORINFO pointer = { sizeof (pointer) };
GetCursorInfo (&pointer);
DrawIcon (hdcCompat, pointer.ptScreenPos.x, pointer.ptScreenPos.y, GetCursor());
DrawIcon (hdcCompat, pointer.ptScreenPos.x, pointer.ptScreenPos.y, pointer.hCursor);
}
/* Restore the original object */