Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ee44c7c0
Commit
ee44c7c0
authored
Dec 13, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix coordinates mapping for the desktop window in the explorer process.
parent
654bb4a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
win.c
dlls/user32/win.c
+5
-2
winpos.c
dlls/user32/winpos.c
+4
-2
No files found.
dlls/user32/win.c
View file @
ee44c7c0
...
...
@@ -740,8 +740,11 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
goto
other_process
;
}
win
=
parent
;
OffsetRect
(
&
window_rect
,
win
->
rectClient
.
left
,
win
->
rectClient
.
top
);
OffsetRect
(
&
client_rect
,
win
->
rectClient
.
left
,
win
->
rectClient
.
top
);
if
(
win
->
parent
)
{
OffsetRect
(
&
window_rect
,
win
->
rectClient
.
left
,
win
->
rectClient
.
top
);
OffsetRect
(
&
client_rect
,
win
->
rectClient
.
left
,
win
->
rectClient
.
top
);
}
}
break
;
}
...
...
dlls/user32/winpos.c
View file @
ee44c7c0
...
...
@@ -445,7 +445,7 @@ static POINT WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored )
mirror_from
=
TRUE
;
offset
.
x
+=
wndPtr
->
rectClient
.
right
-
wndPtr
->
rectClient
.
left
;
}
for
(;;
)
while
(
wndPtr
->
parent
)
{
offset
.
x
+=
wndPtr
->
rectClient
.
left
;
offset
.
y
+=
wndPtr
->
rectClient
.
top
;
...
...
@@ -460,6 +460,7 @@ static POINT WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored )
goto
other_process
;
}
}
if
(
wndPtr
&&
wndPtr
!=
WND_DESKTOP
)
WIN_ReleasePtr
(
wndPtr
);
}
}
...
...
@@ -475,7 +476,7 @@ static POINT WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored )
mirror_to
=
TRUE
;
offset
.
x
-=
wndPtr
->
rectClient
.
right
-
wndPtr
->
rectClient
.
left
;
}
for
(;;
)
while
(
wndPtr
->
parent
)
{
offset
.
x
-=
wndPtr
->
rectClient
.
left
;
offset
.
y
-=
wndPtr
->
rectClient
.
top
;
...
...
@@ -490,6 +491,7 @@ static POINT WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored )
goto
other_process
;
}
}
if
(
wndPtr
&&
wndPtr
!=
WND_DESKTOP
)
WIN_ReleasePtr
(
wndPtr
);
}
}
...
...
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