mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- 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
This commit is contained in:
parent
4087ebf77f
commit
1f1079ac18
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue