Module: wine Branch: master Commit: 33e6f7dca355d98620fa3460d8739bbbc339eab3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=33e6f7dca355d98620fa3460d8...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 20 21:15:04 2010 +0200
user32: Only call the driver when the cursor has actually changed.
---
dlls/user32/cursoricon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 52e49bc..0fc55ad 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -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; }