mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 20:32:18 +00:00
Calculation fix
svn path=/trunk/; revision=4267
This commit is contained in:
parent
975ce25154
commit
397c2118fd
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: window.c,v 1.19 2003/03/06 23:57:00 gvg Exp $
|
/* $Id: window.c,v 1.20 2003/03/09 15:08:33 jfilby Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -925,8 +925,8 @@ MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints)
|
||||||
|
|
||||||
NtUserGetClientOrigin(hWndFrom, &FromOffset);
|
NtUserGetClientOrigin(hWndFrom, &FromOffset);
|
||||||
NtUserGetClientOrigin(hWndTo, &ToOffset);
|
NtUserGetClientOrigin(hWndTo, &ToOffset);
|
||||||
XMove = ToOffset.x - FromOffset.x;
|
XMove = FromOffset.x - ToOffset.x;
|
||||||
YMove = ToOffset.y - FromOffset.y;
|
YMove = FromOffset.y - ToOffset.y;
|
||||||
for (i = 0; i < cPoints; i++)
|
for (i = 0; i < cPoints; i++)
|
||||||
{
|
{
|
||||||
lpPoints[i].x += XMove;
|
lpPoints[i].x += XMove;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue