From 1f1079ac18e42e82712cd0ac6d21089bee9cca33 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Fri, 14 May 2004 16:48:04 +0000 Subject: [PATCH] - Don't modify Msg->pt for mouse messages. It's supposed to be always in screen coordinates, not it client coordinates. svn path=/trunk/; revision=9379 --- reactos/subsys/win32k/ntuser/message.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/message.c b/reactos/subsys/win32k/ntuser/message.c index 07595caa06a..edc4d54a341 100644 --- a/reactos/subsys/win32k/ntuser/message.c +++ b/reactos/subsys/win32k/ntuser/message.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: message.c,v 1.63 2004/05/10 17:07:18 weiden Exp $ +/* $Id: message.c,v 1.64 2004/05/14 16:48:04 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -489,9 +489,10 @@ IntTranslateMouseMessage(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, USHORT *Hit else if(ThreadQueue->MoveSize == NULL && ThreadQueue->MenuOwner == NULL) { - Msg->pt.x -= (WORD)Window->ClientRect.left; - Msg->pt.y -= (WORD)Window->ClientRect.top; - Msg->lParam = MAKELONG(Msg->pt.x, Msg->pt.y); + /* NOTE: Msg->pt should remain in screen coordinates. -- FiN */ + Msg->lParam = MAKELONG( + Msg->pt.x - (WORD)Window->ClientRect.left, + Msg->pt.y - (WORD)Window->ClientRect.top); } }