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
74a03b1a
Commit
74a03b1a
authored
Aug 02, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Use straight assignments instead of CopyRect().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
07f9f712
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
draw.c
dlls/uxtheme/draw.c
+6
-6
No files found.
dlls/uxtheme/draw.c
View file @
74a03b1a
...
...
@@ -98,9 +98,9 @@ HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
if
(
!
hParent
)
hParent
=
hwnd
;
if
(
prc
)
{
CopyRect
(
&
rt
,
prc
)
;
rt
=
*
prc
;
MapWindowPoints
(
hwnd
,
hParent
,
(
LPPOINT
)
&
rt
,
2
);
clip
=
CreateRectRgn
(
0
,
0
,
1
,
1
);
hasClip
=
GetClipRgn
(
hdc
,
clip
);
if
(
hasClip
==
-
1
)
...
...
@@ -142,7 +142,7 @@ HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
opts
.
dwFlags
=
0
;
if
(
pClipRect
)
{
opts
.
dwFlags
|=
DTBG_CLIPRECT
;
CopyRect
(
&
opts
.
rcClip
,
pClipRect
)
;
opts
.
rcClip
=
*
pClipRect
;
}
return
DrawThemeBackgroundEx
(
hTheme
,
hdc
,
iPartId
,
iStateId
,
pRect
,
&
opts
);
}
...
...
@@ -578,7 +578,7 @@ static HRESULT get_image_part_size (HTHEME hTheme, HDC hdc, int iPartId,
int
sizingtype
=
ST_STRETCH
;
BOOL
uniformsizing
=
FALSE
;
CopyRect
(
&
rcDst
,
prc
)
;
rcDst
=
*
prc
;
dstSize
.
x
=
rcDst
.
right
-
rcDst
.
left
;
dstSize
.
y
=
rcDst
.
bottom
-
rcDst
.
top
;
...
...
@@ -2021,8 +2021,8 @@ HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId,
return
E_HANDLE
;
if
(
pBoundingRect
)
CopyRect
(
&
rt
,
pBoundingRect
)
;
rt
=
*
pBoundingRect
;
hr
=
GetThemeFont
(
hTheme
,
hdc
,
iPartId
,
iStateId
,
TMT_FONT
,
&
logfont
);
if
(
SUCCEEDED
(
hr
))
{
hFont
=
CreateFontIndirectW
(
&
logfont
);
...
...
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