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
02452119
Commit
02452119
authored
Sep 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Always store the window rectangles unmirrored after SetWindowPos.
parent
bc20ff50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
win.c
dlls/user32/win.c
+0
-8
win.h
dlls/user32/win.h
+8
-0
winpos.c
dlls/user32/winpos.c
+7
-0
No files found.
dlls/user32/win.c
View file @
02452119
...
...
@@ -44,14 +44,6 @@ static DWORD process_layout;
/**********************************************************************/
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
{
int
width
=
window_rect
->
right
-
window_rect
->
left
;
int
tmp
=
rect
->
left
;
rect
->
left
=
width
-
rect
->
right
;
rect
->
right
=
width
-
tmp
;
}
/* helper for Get/SetWindowLong */
static
inline
LONG_PTR
get_win_data
(
const
void
*
ptr
,
UINT
size
)
{
...
...
dlls/user32/win.h
View file @
02452119
...
...
@@ -120,4 +120,12 @@ extern BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
valid_rects
)
DECLSPEC_HIDDEN
;
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
{
int
width
=
window_rect
->
right
-
window_rect
->
left
;
int
tmp
=
rect
->
left
;
rect
->
left
=
width
-
rect
->
right
;
rect
->
right
=
width
-
tmp
;
}
#endif
/* __WINE_WIN_H */
dlls/user32/winpos.c
View file @
02452119
...
...
@@ -1931,6 +1931,13 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
win
->
dwExStyle
=
reply
->
new_ex_style
;
win
->
rectWindow
=
*
window_rect
;
win
->
rectClient
=
*
client_rect
;
if
(
GetWindowLongW
(
win
->
parent
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
{
RECT
client
;
GetClientRect
(
win
->
parent
,
&
client
);
mirror_rect
(
&
client
,
&
win
->
rectWindow
);
mirror_rect
(
&
client
,
&
win
->
rectClient
);
}
}
}
SERVER_END_REQ
;
...
...
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