From 59818c354347423cafde4ecac4a692dc9071100f Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 30 Dec 2005 20:15:07 +0000 Subject: [PATCH] Fix a mouse bug for hide the cursor. It is working now with my test code for ShowCursor and NtShowCursor. The code for it is not finish. and it also working now hide the mouse with EngMovePointer(SurfObj,-1,-1,NULL); and that did not work before. svn path=/trunk/; revision=20466 --- reactos/subsys/win32k/eng/mouse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/win32k/eng/mouse.c b/reactos/subsys/win32k/eng/mouse.c index 3ae016171e2..12f4688603e 100644 --- a/reactos/subsys/win32k/eng/mouse.c +++ b/reactos/subsys/win32k/eng/mouse.c @@ -72,14 +72,14 @@ MouseSafetyOnDrawStart(SURFOBJ *SurfObj, LONG HazardX1, tmp = HazardY2; HazardY2 = HazardY1; HazardY1 = tmp; } - ppdev->SafetyRemoveCount++; - - if (ppdev->SafetyRemoveLevel) + if (ppdev->SafetyRemoveLevel != 0) { - /* already hidden */ + ppdev->SafetyRemoveCount++; return FALSE; } + ppdev->SafetyRemoveCount++; + if (pgp->Exclude.right >= HazardX1 && pgp->Exclude.left <= HazardX2 && pgp->Exclude.bottom >= HazardY1