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
ee3deec6
Commit
ee3deec6
authored
Jun 22, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Avoid using CopyRect().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce888709
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
ebrowser.c
dlls/shell32/ebrowser.c
+3
-4
shlmenu.c
dlls/shell32/shlmenu.c
+1
-1
No files found.
dlls/shell32/ebrowser.c
View file @
ee3deec6
...
...
@@ -498,7 +498,7 @@ static LRESULT navpane_splitter_beginresize(ExplorerBrowserImpl *This, HWND hwnd
SetCapture
(
hwnd
);
CopyRect
(
&
This
->
splitter_rc
,
&
This
->
navpane
.
rc
)
;
This
->
splitter_rc
=
This
->
navpane
.
rc
;
This
->
splitter_rc
.
left
=
This
->
splitter_rc
.
right
-
SPLITTER_WIDTH
;
splitter_draw
(
GetParent
(
hwnd
),
&
This
->
splitter_rc
);
...
...
@@ -516,8 +516,7 @@ static LRESULT navpane_splitter_resizing(ExplorerBrowserImpl *This, HWND hwnd, L
dx
=
(
SHORT
)
LOWORD
(
lParam
);
TRACE
(
"%d.
\n
"
,
dx
);
CopyRect
(
&
rc
,
&
This
->
navpane
.
rc
);
rc
=
This
->
navpane
.
rc
;
new_width
=
This
->
navpane
.
width
+
dx
;
if
(
new_width
>
NP_MIN_WIDTH
&&
This
->
sv_rc
.
right
-
new_width
>
SV_MIN_WIDTH
)
{
...
...
@@ -525,7 +524,7 @@ static LRESULT navpane_splitter_resizing(ExplorerBrowserImpl *This, HWND hwnd, L
rc
.
left
=
rc
.
right
-
SPLITTER_WIDTH
;
splitter_draw
(
GetParent
(
hwnd
),
&
This
->
splitter_rc
);
splitter_draw
(
GetParent
(
hwnd
),
&
rc
);
CopyRect
(
&
This
->
splitter_rc
,
&
rc
)
;
This
->
splitter_rc
=
rc
;
}
return
TRUE
;
...
...
dlls/shell32/shlmenu.c
View file @
ee3deec6
...
...
@@ -613,7 +613,7 @@ LRESULT WINAPI FileMenu_DrawItem(
clrPrevBkgnd
=
SetBkColor
(
lpdis
->
hDC
,
GetSysColor
(
COLOR_MENU
));
}
CopyRect
(
&
TextRect
,
&
(
lpdis
->
rcItem
))
;
TextRect
=
lpdis
->
rcItem
;
/* add the menubitmap */
menuinfo
=
FM_GetMenuInfo
(
pMyItem
->
hMenu
);
...
...
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