user32: Only call the driver when the cursor has actually changed.
This commit is contained in:
parent
8ec6359bbb
commit
33e6f7dca3
|
@ -1789,7 +1789,7 @@ HCURSOR WINAPI DECLSPEC_HOTPATCH SetCursor( HCURSOR hCursor /* [in] Handle of cu
|
|||
if (!ret) return 0;
|
||||
|
||||
/* Change the cursor shape only if it is visible */
|
||||
if (show_count >= 0) USER_Driver->pSetCursor( hCursor );
|
||||
if (show_count >= 0 && hOldCursor != hCursor) USER_Driver->pSetCursor( hCursor );
|
||||
return hOldCursor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue