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
52be6f0e
Commit
52be6f0e
authored
Jun 05, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Rename rectWindow to window_rect for consistency.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0a75a1b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
win.c
dlls/user32/win.c
+4
-4
win.h
dlls/user32/win.h
+1
-1
winpos.c
dlls/user32/winpos.c
+8
-8
No files found.
dlls/user32/win.c
View file @
52be6f0e
...
...
@@ -856,7 +856,7 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
}
if
(
win
!=
WND_OTHER_PROCESS
)
{
RECT
window_rect
=
win
->
rectWindow
,
client_rect
=
win
->
client_rect
;
RECT
window_rect
=
win
->
window_rect
,
client_rect
=
win
->
client_rect
;
switch
(
relative
)
{
...
...
@@ -867,10 +867,10 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
mirror_rect
(
&
win
->
client_rect
,
&
window_rect
);
break
;
case
COORDS_WINDOW
:
OffsetRect
(
&
window_rect
,
-
win
->
rectWindow
.
left
,
-
win
->
rectWindow
.
top
);
OffsetRect
(
&
client_rect
,
-
win
->
rectWindow
.
left
,
-
win
->
rectWindow
.
top
);
OffsetRect
(
&
window_rect
,
-
win
->
window_rect
.
left
,
-
win
->
window_rect
.
top
);
OffsetRect
(
&
client_rect
,
-
win
->
window_rect
.
left
,
-
win
->
window_rect
.
top
);
if
(
win
->
dwExStyle
&
WS_EX_LAYOUTRTL
)
mirror_rect
(
&
win
->
rectWindow
,
&
client_rect
);
mirror_rect
(
&
win
->
window_rect
,
&
client_rect
);
break
;
case
COORDS_PARENT
:
if
(
win
->
parent
)
...
...
dlls/user32/win.h
View file @
52be6f0e
...
...
@@ -44,7 +44,7 @@ typedef struct tagWND
DWORD
tid
;
/* Owner thread id */
HINSTANCE
hInstance
;
/* Window hInstance (from CreateWindow) */
RECT
client_rect
;
/* Client area rel. to parent client area */
RECT
rectWindow
;
/* Whole window rel. to parent client area */
RECT
window_rect
;
/* 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 */
POINT
min_pos
;
/* Position for minimized window */
...
...
dlls/user32/winpos.c
View file @
52be6f0e
...
...
@@ -704,7 +704,7 @@ static void WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
TRACE
(
"%p %i
\n
"
,
hwnd
,
(
bShow
!=
0
)
);
if
(
!
win
||
win
==
WND_OTHER_PROCESS
||
win
==
WND_DESKTOP
)
return
;
if
(
win
->
rectWindow
.
left
==
-
32000
||
win
->
rectWindow
.
top
==
-
32000
)
if
(
win
->
window_rect
.
left
==
-
32000
||
win
->
window_rect
.
top
==
-
32000
)
{
TRACE
(
"not showing title for hidden icon %p
\n
"
,
hwnd
);
bShow
=
FALSE
;
...
...
@@ -1318,17 +1318,17 @@ BOOL WINAPI GetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *wndpl )
/* update the placement according to the current style */
if
(
pWnd
->
dwStyle
&
WS_MINIMIZE
)
{
pWnd
->
min_pos
.
x
=
pWnd
->
rectWindow
.
left
;
pWnd
->
min_pos
.
y
=
pWnd
->
rectWindow
.
top
;
pWnd
->
min_pos
.
x
=
pWnd
->
window_rect
.
left
;
pWnd
->
min_pos
.
y
=
pWnd
->
window_rect
.
top
;
}
else
if
(
pWnd
->
dwStyle
&
WS_MAXIMIZE
)
{
pWnd
->
max_pos
.
x
=
pWnd
->
rectWindow
.
left
;
pWnd
->
max_pos
.
y
=
pWnd
->
rectWindow
.
top
;
pWnd
->
max_pos
.
x
=
pWnd
->
window_rect
.
left
;
pWnd
->
max_pos
.
y
=
pWnd
->
window_rect
.
top
;
}
else
{
pWnd
->
normal_rect
=
pWnd
->
rectWindow
;
pWnd
->
normal_rect
=
pWnd
->
window_rect
;
}
wndpl
->
length
=
sizeof
(
*
wndpl
);
...
...
@@ -2117,7 +2117,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
->
window_rect
=
*
window_rect
;
win
->
client_rect
=
*
client_rect
;
win
->
visible_rect
=
visible_rect
;
win
->
surface
=
new_surface
;
...
...
@@ -2127,7 +2127,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
->
window_rect
);
mirror_rect
(
&
client
,
&
win
->
client_rect
);
mirror_rect
(
&
client
,
&
win
->
visible_rect
);
}
...
...
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