Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
df3e5a87
Commit
df3e5a87
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Reimplement MapWindowPoints16 and move it to wnd16.c.
parent
1d1f8e2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
winpos.c
dlls/user32/winpos.c
+0
-18
wnd16.c
dlls/user32/wnd16.c
+24
-0
No files found.
dlls/user32/winpos.c
View file @
df3e5a87
...
...
@@ -507,24 +507,6 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, POINT *offset )
/*******************************************************************
* MapWindowPoints (USER.258)
*/
void
WINAPI
MapWindowPoints16
(
HWND16
hwndFrom
,
HWND16
hwndTo
,
LPPOINT16
lppt
,
UINT16
count
)
{
POINT
offset
;
WINPOS_GetWinOffset
(
WIN_Handle32
(
hwndFrom
),
WIN_Handle32
(
hwndTo
),
&
offset
);
while
(
count
--
)
{
lppt
->
x
+=
offset
.
x
;
lppt
->
y
+=
offset
.
y
;
lppt
++
;
}
}
/*******************************************************************
* MapWindowPoints (USER32.@)
*/
INT
WINAPI
MapWindowPoints
(
HWND
hwndFrom
,
HWND
hwndTo
,
LPPOINT
lppt
,
UINT
count
)
...
...
dlls/user32/wnd16.c
View file @
df3e5a87
...
...
@@ -1260,6 +1260,30 @@ HWND16 WINAPI GetOpenClipboardWindow16(void)
}
/*******************************************************************
* MapWindowPoints (USER.258)
*/
void
WINAPI
MapWindowPoints16
(
HWND16
hwndFrom
,
HWND16
hwndTo
,
LPPOINT16
lppt
,
UINT16
count
)
{
POINT
buffer
[
8
],
*
ppt
=
buffer
;
UINT
i
;
if
(
count
>
8
)
ppt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
*
ppt
)
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ppt
[
i
].
x
=
lppt
[
i
].
x
;
ppt
[
i
].
y
=
lppt
[
i
].
y
;
}
MapWindowPoints
(
WIN_Handle32
(
hwndFrom
),
WIN_Handle32
(
hwndTo
),
ppt
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
lppt
[
i
].
x
=
ppt
[
i
].
x
;
lppt
[
i
].
y
=
ppt
[
i
].
y
;
}
if
(
ppt
!=
buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
ppt
);
}
/**************************************************************************
* BeginDeferWindowPos (USER.259)
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment