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:
parent
d598a9147b
commit
7e63e661f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue