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
0a75a1b6
Commit
0a75a1b6
authored
Jun 05, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Rename rectClient to client_rect for consistency.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3bb4ecaf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
painting.c
dlls/user32/painting.c
+2
-2
win.c
dlls/user32/win.c
+8
-8
win.h
dlls/user32/win.h
+1
-1
winpos.c
dlls/user32/winpos.c
+9
-9
No files found.
dlls/user32/painting.c
View file @
0a75a1b6
...
...
@@ -838,8 +838,8 @@ void move_window_bits_parent( HWND hwnd, HWND parent, const RECT *window_rect, c
TRACE
(
"copying %s -> %s
\n
"
,
wine_dbgstr_rect
(
&
src
),
wine_dbgstr_rect
(
&
dst
));
MapWindowPoints
(
GetAncestor
(
hwnd
,
GA_PARENT
),
parent
,
(
POINT
*
)
&
src
,
2
);
OffsetRect
(
&
src
,
win
->
rectClien
t
.
left
-
win
->
visible_rect
.
left
,
win
->
rectClien
t
.
top
-
win
->
visible_rect
.
top
);
OffsetRect
(
&
src
,
win
->
client_rec
t
.
left
-
win
->
visible_rect
.
left
,
win
->
client_rec
t
.
top
-
win
->
visible_rect
.
top
);
OffsetRect
(
&
dst
,
-
window_rect
->
left
,
-
window_rect
->
top
);
window_surface_add_ref
(
surface
);
WIN_ReleasePtr
(
win
);
...
...
dlls/user32/win.c
View file @
0a75a1b6
...
...
@@ -856,15 +856,15 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
}
if
(
win
!=
WND_OTHER_PROCESS
)
{
RECT
window_rect
=
win
->
rectWindow
,
client_rect
=
win
->
rectClien
t
;
RECT
window_rect
=
win
->
rectWindow
,
client_rect
=
win
->
client_rec
t
;
switch
(
relative
)
{
case
COORDS_CLIENT
:
OffsetRect
(
&
window_rect
,
-
win
->
rectClient
.
left
,
-
win
->
rectClien
t
.
top
);
OffsetRect
(
&
client_rect
,
-
win
->
rectClient
.
left
,
-
win
->
rectClien
t
.
top
);
OffsetRect
(
&
window_rect
,
-
win
->
client_rect
.
left
,
-
win
->
client_rec
t
.
top
);
OffsetRect
(
&
client_rect
,
-
win
->
client_rect
.
left
,
-
win
->
client_rec
t
.
top
);
if
(
win
->
dwExStyle
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
win
->
rectClien
t
,
&
window_rect
);
mirror_rect
(
&
win
->
client_rec
t
,
&
window_rect
);
break
;
case
COORDS_WINDOW
:
OffsetRect
(
&
window_rect
,
-
win
->
rectWindow
.
left
,
-
win
->
rectWindow
.
top
);
...
...
@@ -890,8 +890,8 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
}
if
(
parent
->
dwExStyle
&
WS_EX_LAYOUTRTL
)
{
mirror_rect
(
&
parent
->
rectClien
t
,
&
window_rect
);
mirror_rect
(
&
parent
->
rectClien
t
,
&
client_rect
);
mirror_rect
(
&
parent
->
client_rec
t
,
&
window_rect
);
mirror_rect
(
&
parent
->
client_rec
t
,
&
client_rect
);
}
WIN_ReleasePtr
(
parent
);
}
...
...
@@ -915,8 +915,8 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
win
=
parent
;
if
(
win
->
parent
)
{
OffsetRect
(
&
window_rect
,
win
->
rectClient
.
left
,
win
->
rectClien
t
.
top
);
OffsetRect
(
&
client_rect
,
win
->
rectClient
.
left
,
win
->
rectClien
t
.
top
);
OffsetRect
(
&
window_rect
,
win
->
client_rect
.
left
,
win
->
client_rec
t
.
top
);
OffsetRect
(
&
client_rect
,
win
->
client_rect
.
left
,
win
->
client_rec
t
.
top
);
}
}
break
;
...
...
dlls/user32/win.h
View file @
0a75a1b6
...
...
@@ -43,7 +43,7 @@ typedef struct tagWND
WNDPROC
winproc
;
/* Window procedure */
DWORD
tid
;
/* Owner thread id */
HINSTANCE
hInstance
;
/* Window hInstance (from CreateWindow) */
RECT
rectClient
;
/* Client area rel. to parent client area */
RECT
client_rect
;
/* Client area rel. to parent client area */
RECT
rectWindow
;
/* Whole window rel. to parent client area */
RECT
visible_rect
;
/* Visible part of the whole rect, rel. to parent client area */
RECT
normal_rect
;
/* Normal window rect saved when maximized/minimized */
...
...
dlls/user32/winpos.c
View file @
0a75a1b6
...
...
@@ -428,12 +428,12 @@ static BOOL WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored, POI
if
(
wndPtr
->
dwExStyle
&
WS_EX_LAYOUTRTL
)
{
mirror_from
=
TRUE
;
offset
.
x
+=
wndPtr
->
rectClient
.
right
-
wndPtr
->
rectClien
t
.
left
;
offset
.
x
+=
wndPtr
->
client_rect
.
right
-
wndPtr
->
client_rec
t
.
left
;
}
while
(
wndPtr
->
parent
)
{
offset
.
x
+=
wndPtr
->
rectClien
t
.
left
;
offset
.
y
+=
wndPtr
->
rectClien
t
.
top
;
offset
.
x
+=
wndPtr
->
client_rec
t
.
left
;
offset
.
y
+=
wndPtr
->
client_rec
t
.
top
;
hwnd
=
wndPtr
->
parent
;
WIN_ReleasePtr
(
wndPtr
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
hwnd
)))
break
;
...
...
@@ -463,12 +463,12 @@ static BOOL WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, BOOL *mirrored, POI
if
(
wndPtr
->
dwExStyle
&
WS_EX_LAYOUTRTL
)
{
mirror_to
=
TRUE
;
offset
.
x
-=
wndPtr
->
rectClient
.
right
-
wndPtr
->
rectClien
t
.
left
;
offset
.
x
-=
wndPtr
->
client_rect
.
right
-
wndPtr
->
client_rec
t
.
left
;
}
while
(
wndPtr
->
parent
)
{
offset
.
x
-=
wndPtr
->
rectClien
t
.
left
;
offset
.
y
-=
wndPtr
->
rectClien
t
.
top
;
offset
.
x
-=
wndPtr
->
client_rec
t
.
left
;
offset
.
y
-=
wndPtr
->
client_rec
t
.
top
;
hwnd
=
wndPtr
->
parent
;
WIN_ReleasePtr
(
wndPtr
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
hwnd
)))
break
;
...
...
@@ -2087,7 +2087,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
return
FALSE
;
}
old_visible_rect
=
win
->
visible_rect
;
old_client_rect
=
win
->
rectClien
t
;
old_client_rect
=
win
->
client_rec
t
;
old_surface
=
win
->
surface
;
if
(
old_surface
!=
new_surface
)
swp_flags
|=
SWP_FRAMECHANGED
;
/* force refreshing non-client area */
...
...
@@ -2118,7 +2118,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
win
->
dwStyle
=
reply
->
new_style
;
win
->
dwExStyle
=
reply
->
new_ex_style
;
win
->
rectWindow
=
*
window_rect
;
win
->
rectClient
=
*
client_rect
;
win
->
client_rect
=
*
client_rect
;
win
->
visible_rect
=
visible_rect
;
win
->
surface
=
new_surface
;
surface_win
=
wine_server_ptr_handle
(
reply
->
surface_win
);
...
...
@@ -2128,7 +2128,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
RECT
client
;
GetClientRect
(
win
->
parent
,
&
client
);
mirror_rect
(
&
client
,
&
win
->
rectWindow
);
mirror_rect
(
&
client
,
&
win
->
rectClien
t
);
mirror_rect
(
&
client
,
&
win
->
client_rec
t
);
mirror_rect
(
&
client
,
&
win
->
visible_rect
);
}
/* if an RTL window is resized the children have moved */
...
...
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